Flash / PHP file upload issues

I am trying to write a simple internal file delivery program to upload files for easy upload on a client computer. I am using Flash with a very simple PHP script receiving a file. While it works.

Problem operator: using FTP, a 100MB file will upload in 2-3 minutes. Using my simple Flash downloader and loading it to the same destination, it takes 3-5 times. Is there a way I can change PHP / Apache settings to improve load times?

FLA: http://shorttext.com/ku018nj56s

PHP: http://shorttext.com/5thixgjtr

+2


source to share


3 answers


I can't imagine that most of the overhead comes from the Flash upload component. Can you, as Xeoncross already recommended, use a different one to make sure it doesn't target anything for a particular program? The SWFUpload standard example should be fairly easy to configure.

Then, is there any post-processing on the server and that might prolong the request? What happens if you immediately let script die () receive, the time difference is still so much?



How (which host / IP) do you access the FTP server and how does the browser access the script that parses the download?

I don't think you can do anything at the end of PHP because the PHP script only comes into play when the file has been fully loaded. The only thing that could be a misconfiguration of the web server - Apache or whatever you are using - but this is a very distant possibility.

+2


source


I would suggest that you try the built-in flash unloader like the beautiful FancyUpload , based on the javascript mootools framework. First, it has been around and open source for a lot longer, so it will be optimized. Second, if it's still slower than FTP (which it will be), then you will find out that the point is that the FLASH + Apache + PHP overhead simply cannot beat the speed of a direct FTP connection.



There are many other users too - from standalone to jQuery !

+2


source


Can XMLHTTPRequest be used and downloaded over HTTP?

0


source







All Articles