August 22, 2007

PHP File Upload Woes

You will find other articles relevant to this document in these sections:
Richard Lee @ 11:51 am

I’ve spent the last 2 days trying to get a file uploading script working on my shared host. It’s driving me crazy. Files 1MB and under upload completely fine, but anything above and the browser bombs out with “server busy..” errors! Before you say “update your max_upload_size, post_max_size and max_execution_time ini settings“. Forget it. Been there done that. No success. Is Apache overriding my settings? Some investigation into the possibility has unveiled 4 possibilities. The Apache directives LimitReqestBody, TimeOut, RLimitMEM and RLimitCPU. I’ve read that LimitRequestBody will limit the size of the incomming request, and TimeOut is pretty self explanatory. Still reading into the affects of RLimit*.

If you’ve experienced php upload problems and can offer any insight please let me know! Anyway i’ll keep you posted on further developments on the issue..

UPDATE:
Ok it seems my server tweaks were not the problem, it’s actually Firefox timing out. IE after some time eventually uploads the file as expected. The file is being uploaded at roughly 1 minute per MB over our broadband connection, and FF seems to be bomb out after 2 and half minutes. There seems to be some tweaks in the FF about:config that can me made just not sure what yet!
(for the record i am testing in FF 2.0.0.5 and IE 7 on XP)

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Furl
  • Reddit
  • YahooMyWeb

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment