CodeIgniter Forums

Full Version: white screen file upload [resloved]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]OES[/eluser]
Hi Chaps.

I really hope you can help with this.

Im developing another CI site and still failry new but its getting better.

I am trying to do a very simple file upload which I have working fine on another site but I have no idea every time on this application on submitting the form all I get is the white screen of death.

This only happens after running the $this->upload->do_upload() ie

Code:
if ( ! $this->upload->do_upload()):
    $file_error = array('error' => $this->upload->display_errors());
else:
  $file_data = array('upload_data' => $this->upload->data());
endif;

Its not uploading the file. All i am getting is a white screen like I say after submitting the form.

If I comment out the upload check the form works perfect.

I have set my error logs to 2 and also set php_flag display_errors 1 in my .htaccess file.

But I am getting no errors.

Ive been at this now for about 4 hours and its just not happening.

I really hope someone can advise so I can bottom this out.

Thank you in advance.

El Forum

[eluser]OES[/eluser]
It was my fault !

El Forum

[eluser]Grahack[/eluser]
Could you please give just a short explanation for the record? Thanks.

El Forum

[eluser]OES[/eluser]
I had made a slight adjustement in the mimes.php file which caused the error.