PirateBox-Dev / PirateBoxScripts_Webserver

PirateBox Scriptcollection for running in Webserver
GNU General Public License v3.0
206 stars 102 forks source link

Nicer Upload with multi-file and Multi-Part #32

Open MaStr opened 11 years ago

MaStr commented 11 years ago

See git-Repository blueimp/jQuery-File-Upload

See demo: http://blueimp.github.com/jQuery-File-Upload/

Python backend already written (we maybe have to improve it). Contains active support, instead of that c't example

  1. Chunksize 250kb
  2. all possible upload files (exclude ../ in Filename and index.* )
  3. Maybe include welcome page
  4. Is it possible to rename the files with tmp_ and after the last chunk rename it to
  5. Fallback-Upload with "normal upload" http://webpython.codepoint.net/cgi_file_upload
    5.1. Filesize max in lighttpd 20MB 5.2. all possible upload files (exclude ../ in Filename and index.* )
MaStr commented 11 years ago

Idea behind this version of multi-upload was a mentioned python script on the mainpage. During my testinstall, I recognized that the python script is running on google's app engine and not native in cgi :-1:

FriedZombie commented 10 years ago

It is possible to implement it with jquery without needing the google's app engine, done this some time ago. It was custom build for an companies intranet, sadly I don't have the code anymore, but wouldn't be to hard to recreate.

Also renaming wouldn't be an issue, it can also be renamed to the original file name if needed. The file limmit set by lighthttpd is not a limmit anymore, since the chunks can be put togeterhet again and superseding the max file limmit.

If I remember correctly it is even possible to extract zip files client side, and make it possible to upload zip files and before upload extract the contents before hand. (but I have to look into this).

MaStr commented 10 years ago

Yes, I already did alot testing with jquery+php and doing limits in lighttpd and so on. What I did ot in my tests: do it without fastcgi .. so compared to my developed in the last time, the results from a year ago are not completly comparable.

And maybe with the fix for USB, the issues I encountered are now solved too.

So a solution with php+jquery is solvable :)

FriedZombie commented 10 years ago

To be honest I think php is too resource hungry and maybe worth to persue a different way to upload multipart data.

MaStr commented 10 years ago

the best way would be without doing compiles for packaging... that is solved by interpreter languages. What is your suggestion... to combine a nice pre-build UI with an "easy" solution at the backend..mh .

FriedZombie commented 10 years ago

I would do either something in perl or python http://docs.python.org/2/howto/webservers.html#fastcgi-and-scgi http://perldoc.perl.org/CGI/Fast.html

MaStr commented 9 years ago

http://redmine.lighttpd.net/issues/164#note-9 (needs lighttpd running on an additional socket ++ mod_proxy )

combined with: https://github.com/sigurdga/django-jquery-file-upload

http://blueimp.github.io/jQuery-File-Upload/

=== Solution?

MaStr commented 9 years ago

Technically working included to the develeopment branch

now the boxes etc. must be included to UI