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 | 38507c697c6b5f277cabc5eb61afff14ea02da07 (patch) | |
tree | 0405c498a9fae8ff066ca8fdeafa8f85b0615dbe /tests | |
parent | d2274ae571370a5f0b88a6b0a5b264fde29378b9 (diff) |
Returning a blob as page result
Diffstat (limited to 'tests')
-rw-r--r-- | tests/echoBlob.ur | 8 | ||||
-rw-r--r-- | tests/echoBlob.urp | 3 | ||||
-rw-r--r-- | tests/echoBlob.urs | 1 |
3 files changed, 12 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> diff --git a/tests/echoBlob.urp b/tests/echoBlob.urp new file mode 100644 index 00000000..4b94b59c --- /dev/null +++ b/tests/echoBlob.urp @@ -0,0 +1,3 @@ +debug + +echoBlob diff --git a/tests/echoBlob.urs b/tests/echoBlob.urs new file mode 100644 index 00000000..6ac44e0b --- /dev/null +++ b/tests/echoBlob.urs @@ -0,0 +1 @@ +val main : unit -> transaction page |