M drag-and-drop upload example?

22 views
Skip to first unread message

iaw4

unread,
May 4, 2017, 12:22:57 PM5/4/17
to Mojolicious

dear M users---I have normal prompt uploads working just fine.

alas, I would like to have a simple box into which the browser user can drag one or multiple files for upload.

this can be done, e.g., with jquery-upload (blue imp), but I do not know whether this is the preferred solution.

Does anyone have a minimal working M-Lite skeleton example upon which to build?  presumably it would just show a box, and display the file upon upload.

regards, /iaw

Stefan Adams

unread,
May 4, 2017, 8:33:01 PM5/4/17
to mojolicious
Here's an old one I wrote, it needs some love.  It uses a Javascript library called Dropzone.

It works but the Uploaded Files column on the left doesn't render well.

Would happily take pull requests!

--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscribe@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Luc Didry

unread,
May 5, 2017, 2:36:15 AM5/5/17
to mojol...@googlegroups.com, Stefan Adams
jeudi 4 mai 2017, 19:32:39 CEST Stefan Adams wrote:
> Here's an old one I wrote <https://github.com/KeystoneIT/Dropzone>, it
> needs some love. It uses a Javascript library called Dropzone
> <http://www.dropzonejs.com/>.
>
> It works <http://dropzone.dev.kit.cm> but the Uploaded Files column on the
> left doesn't render well.
>
> Would happily take pull requests!

I got two example of such a drop zone on https://framagit.org/luc/lutim and
https://framagit/luc/lufi. You can try them on https://lut.im and
https://demo.lufi.io. I use dmuploader for it: https://github.com/danielm/uploader
--
Luc
https://fiat-tux.fr/
https://luc.frama.io/
Internet n'est pas compliqué, Internet est ce que vous en faites.

Reply all
Reply to author
Forward
0 new messages