开发者

Optimise file upload

开发者 https://www.devze.com 2023-01-06 01:10 出处:网络
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\

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消