CodeIgniter Forums
white screen file upload [resloved] - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: white screen file upload [resloved] (/showthread.php?tid=9323)



white screen file upload [resloved] - El Forum - 06-21-2008

[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.


white screen file upload [resloved] - El Forum - 06-22-2008

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


white screen file upload [resloved] - El Forum - 06-23-2008

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


white screen file upload [resloved] - El Forum - 06-23-2008

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