diff tests/echoBlob.ur @ 741:f7e2026dd5ae

Returning a blob as page result
author Adam Chlipala <adamc@hcoop.net>
date Sun, 26 Apr 2009 09:02:17 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/echoBlob.ur	Sun Apr 26 09:02:17 2009 -0400
@@ -0,0 +1,8 @@
+fun echo r = returnBlob (fileData r.Data) (blessMime (fileMimeType r.Data))
+
+fun main () = return <xml><body>
+  <form>
+    <upload{#Data}/>
+    <submit action={echo}/>
+  </form>
+</body></xml>