rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: some1 on September 22, 2010, 05:56:20 PM

Title: Idea? Drag and Drop Upload
Post by: some1 on September 22, 2010, 05:56:20 PM
How about it?
Title says all!
Example
http://www.thecssninja.com/javascript/drag-and-drop-upload
Title: Re: Idea? Drag and Drop Upload
Post by: SamePaul on September 30, 2010, 07:11:08 PM
It's pure client side. Write template :)
Title: Re: Idea? Drag and Drop Upload
Post by: JamiDodger on October 02, 2010, 11:18:02 AM
If You Ever Make The Template Please Share   :)
Title: Re: Idea? Drag and Drop Upload
Post by: TSG on October 02, 2010, 02:13:26 PM
Does it allow a file queue? rejetto might be interested. Most use flash to add the files and upload, but it creates a new connection and HFS can't handle that with upload permissions.

Google tried this, but its not there anymore from what I can tell. I don't see the point until all browsers can use it anyway.
Title: Re: Idea? Drag and Drop Upload
Post by: SamePaul on October 02, 2010, 04:14:30 PM
Writing template is not real problem here. I did it by mainly copy-paste example code to default template. However it needs some tuning.
The main problem is to encode file contents to application/x-www-form-urlencoded mime type. Actually I remeber had somewhere example of doing that specifically for XHR.
I maybe would even bother with it a bit more but I realized soon that whole approach is based on reading whole file into RAM and then just submit it via XHR. And I say it sucks. No. it SUCKS. Just imagine you want to upload 2-hours 320kbps mp3 DJ set to your home HFS. Woohoo!
In the current implementation it's just a waste. Maybe guys at MDC will think a little bit more and add some conversion or encoding engine that can be plugged in between FileReader and XHR and do all necessary tasks without need to load whole data into RAM
And then we can talk about any usability.
Title: Re: Idea? Drag and Drop Upload
Post by: some1 on October 10, 2010, 06:34:15 PM
If You Ever Make The Template Please Share   :)
Ill have a play about and see what I can do! :)