diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-26 09:02:17 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-26 09:02:17 -0400 |
commit | bc7a09d702e53faaa882bb7b2591abe68ff5648e (patch) | |
tree | 0405c498a9fae8ff066ca8fdeafa8f85b0615dbe /tests/echoBlob.ur | |
parent | 609db88f316604bf1084dbb0defe5e6c0eaf07ae (diff) |
Returning a blob as page result
Diffstat (limited to 'tests/echoBlob.ur')
-rw-r--r-- | tests/echoBlob.ur | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/echoBlob.ur b/tests/echoBlob.ur new file mode 100644 index 00000000..fc8f8603 --- /dev/null +++ b/tests/echoBlob.ur @@ -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> |