Question:
PHP file upload code does not work?
Sudipta B
2008-02-17 23:29:12 UTC
I have created a PHP code through which I can upload pdf files along with other data. It is working fine at our end but the client says that it seldom works but both of us are checking from the same server. There is proper MIME type set for the files and the the folder where it is getting uploaded also has write permission. Please help me if I need to check anything else inorder to make it work at both ends.
Four answers:
Andrew
2008-02-17 23:53:55 UTC
Is there anything consistent about the failed files? Is it only larger files perhaps? Which could mean you have to adjust the max post / upload size for php.
PHPMine.com
2008-02-19 13:10:48 UTC
well what does the client see when ti fails to work? Did you try recreating the environment and conditions the client is using? is he on a mac and you on a pc? is he uploading a file and refreshing it after 2 seconds? is he uploading a file that is too big? did you try uploading the same file?
James D
2008-02-18 07:46:01 UTC
If it "seldom" works, then that means it sometimes works, right? I think the problem is unique to the client's PC or ISP or something. I would do more testing from different computers, and see if you can recreate the problem. I bet the problem is on their end, and not yours.



Hope this helps





James D

zzaazz.com
cruppstahl
2008-02-18 09:38:17 UTC
you should write a log-file on the server and print a lot of debug information with timestamps, so you have more information about what's exactly going on.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...