CodeIgniter Forums
[RESOLVED] Cannot upload file on the real server. - 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: [RESOLVED] Cannot upload file on the real server. (/showthread.php?tid=6875)



[RESOLVED] Cannot upload file on the real server. - El Forum - 03-15-2008

[eluser]madeks[/eluser]
Well I'm not sure is it about the server or not.
On my local test it work fine which is Windows NT 5.1, Apache 2.0 and PHP 5.1.4.
When I upload it to an online server which is Windows NT 5.2, CGI/FastCGI and PHP 5.2.3.

After investigated in the upload class.
It seems like function copy and move_uploaded_file are not work with no reason.

I've checked the destination path and permission their are correct whether it already check in the upload class.

I already spend 2 hrs to find out but still got nothing.

Is there anything I have to check or any source I can study?

Thanks in advance.


PS, the file I test to upload is already in the temp folder and $_FILES contain the correct value.

Quote:This problem is from the permission error.
When I tried remove @ out of the copy function then it complain on the permission stuff.

sorry for this stupid post. Tongue