[racket] "upload file" button in a Racket web server

From: Andrew Dudash (drewdudash at gmail.com)
Date: Fri Aug 1 09:35:54 EDT 2014

There's the following.

  #lang web-server/insta

  (require web-server/formlets)

  (define (start req)
    (send/formlet (file-upload)))

But this doesn't support dragging and dropping images. You can add support
for that with JavaScript, but I don't think there's anything like it in a
Racket library. (I'd love to be proven wrong if anyone knows of one.)



On Thu, Jul 31, 2014 at 10:21 PM, Mitchell Wand <wand at ccs.neu.edu> wrote:

> Many web pages have an "upload file" button that allows the user to
> drag&drop a file onto the button, and then hitting the button sends the
> file to the server.
>
> Is there any way of doing this in a Racket web server?  If not, how close
> can we come?
>
> --Mitch
>
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140801/a46f591e/attachment.html>

Posted on the users mailing list.