Optimise file upload
I have a small php script which allows me to upload image file on the server. The only problem is that it takes a whole life to upload a 586 kilobytes image file. It there anyway to optimise this?. I'm running a 256kb/s download and 58 kb/s upload.开发者_JAVA技巧 Thanks
The problem is your upload bandwidth. I don't think you can optimize this. You can optimize your image but not your upload speed.
If i understand you correctly then you cannot optimise the process in its current form. What you can conisder though is switching to a more elegant file upload solution such as SWFupload, Uploadify or Plupload (to name a few). This will provide you with a graphical file upload progress bar so you dont have the same sense of the browser hanging.
精彩评论