I'd like to ask for tips on how to improve uploading of files in a
web-browser and at the same time present what I have found myself.

I am developing a really small filemanager really BIG files. I am
talking about anything from a few MB to a few GB files. Obviousy this
presents a few problems for the good old upload form.

Problem 1 - servers limit the maximum filesize. As I will primarily use
this on my own server I can set it any way I like.
Problem 2 - POSTing big multipart forms (files) requires the server to
decode the upload which uses lots of RAM and CPU. I have not tested at
which point my server crashes but I imagine a 4GB DVD image would do
the trick. I also have yet to try to force raw binary encoding in the
upload but I imagine sandbox sequrity will prevent me from doing to
much to the headers using something like javascript.
Problem 3 - There is a PUT request that can be made to configured
servers. This simply uploads raw binary filedata. Problem is you can't
do PUT request from browsers AFAIK. The only working example I have
seen is a Java Applet. Looking at Flash docs suggests it is not up to
the job either.
Problem 4 - the browser stalls for a loooong time when uploading big
files. There are a few AJAX ways to get feedback to the user which is
good.

So what I can do to pretty up my uploads is to first make an AJAX
progressbar. This takes care of 10-100MB at least since the server can
handle those sizes. I can let the user upload many files at once in the
same form. This can also be "Ajaxed" if I want but all files are
bundled and POSTed as one large chunk of data, which is bad. I could
probably que them using some javascript/ajax callbacks.

I can also buy the only Java Applet I have found and use it even though
it is pretty ugly to look at. Links to the apples and other pages on
this topic below:

Upload applet as a price
http://upload.thinfile.com/

Ajaxed pretty uploader with source
http://labs.beffa.org/w2box/

Multi-file upload article
http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/

PHP PUT support
http://www.php-editors.com/php_manual/features.file-upload.put-method.html

W3C's own PUT application... really ugly java application
http://jigsaw.w3.org/Winie/help.html

Any tips, links to souce of articles and other ínfo greatly
appreciated. Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to