[Seaside] Upload an image and display it immediately

Karsten Kusche karsten at heeg.de
Wed Jul 31 15:25:22 UTC 2019


Hi Bruno,

You can very well return any kind of data from any responder. There’s nothing to stop you from having a callback block and in there do something like self requestContext respond:[:response| response ... ].

There you can do the same as what WAFileLibrary does: provide a document with mime-type, etc. if you set the content disposition you can even customize the filename.

Kind regards
Karsten



Georg Heeg eK
Wallstraße 22
06366 Köthen

Tel.: 03496/214328
FAX: 03496/214712
Amtsgericht Dortmund HRA 12812


Am 31. Juli 2019 um 16:44:10 MESZ schrieb BrunoBB <smalltalk at adinet.com.uy>:
Hi,

Actually i think this is not possible with Seaside (to serve an image
without WAFileLibrary).

So i think the best approach is to:
1) Upload the image from Seaside
2) Copy the image to a virtual directory
3) Set Reverse Proxy to server the virtual directory of 3). (this step it
should be the first step :)
4) From Seaside create a image tag with url of 3) (the image served by the
RP).

regards,
bruno




--
Sent from: http://forum.world.st/Seaside-General-f86180.html
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20190731/bde9d8ef/attachment.html>


More information about the seaside mailing list