raucao / sharesome

Share files quickly from your remote storage
https://sharesome.5apps.com
23 stars 5 forks source link

Unify upload and history views #41

Open jorinvo opened 8 years ago

jorinvo commented 8 years ago

I think it would be pretty handy to just have one screen. It happened to me before that I dragged a file into the history view accidentally. The upload area could be a small thing at the top and the area could expand if you drag a file onto the page.

raucao commented 8 years ago

I don't like this idea tbh. Loading images takes a long time, and I'm oftentimes on slow connections. Having to explicitly open history (which I need much less often than upload) means not loading it every time.

jorinvo commented 8 years ago

Good point! Getting to the upload screen should be really quick since many times you just open the page the moment you want to upload an image.

Maybe we could still allow dropping files onto the history view?

raucao commented 8 years ago

Maybe we could still allow dropping files onto the history view?

Hmm, yes. That might be possible somehow. Will require some creative hacking. :)

jorinvo commented 8 years ago

@skddc or we only support modern browsers with this and us a drop event instead of a file input (something like this http://stackoverflow.com/questions/10261989/html5-javascript-drag-and-drop-file-from-external-window-windows-explorer).

raucao commented 8 years ago

Yes!

We can keep the file input on upload, though. It has some advantages (e.g. I'm usually not dropping but clicking anywhere in the window to open the file dialog).

jorinvo commented 8 years ago

Yes. Sounds good!