annotate demo/upload.ur @ 2174:ce312cad5ecd

Use correct OpenSSL thread safety macros on OS X (closes #209) Create an Autoconf test to determine if pthread_t is a pointer or scalar type, and use the appropriate CRYPTO_THREADID_set macro based on the result.
author Benjamin Barenblat <bbaren at mit.edu>
date Sun, 20 Sep 2015 17:46:07 -0400
parents 9f2555f06901
children
rev   line source
adamc@776 1 fun echo r =
adamc@776 2 if blobSize (fileData r.File) > 100000 then
adamc@776 3 return <xml>Whoa! That one's too big.</xml>
adamc@776 4 else
adamc@776 5 returnBlob (fileData r.File) (blessMime (fileMimeType r.File))
adamc@776 6
adamc@776 7 fun main () = return <xml><body>
adamc@776 8 <h1>The Amazing File Echoer!</h1>
adamc@776 9
adamc@776 10 <form>Upload a file: <upload{#File}/> <submit action={echo}/></form>
adamc@776 11 </body></xml>