Mercurial > urweb
diff lib/ur/basis.urs @ 737:d049d31a1966
Initial support for blobs and upload
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 25 Apr 2009 13:59:11 -0400 |
parents | 7c6b6c3c7b79 |
children | 4bb7e1c0550a |
line wrap: on
line diff
--- a/lib/ur/basis.urs Thu Apr 23 16:13:02 2009 -0400 +++ b/lib/ur/basis.urs Sat Apr 25 13:59:11 2009 -0400 @@ -2,6 +2,7 @@ type float type string type time +type blob type unit = {} @@ -134,6 +135,7 @@ val sql_float : sql_injectable_prim float val sql_string : sql_injectable_prim string val sql_time : sql_injectable_prim time +val sql_blob : sql_injectable_prim blob val sql_channel : t ::: Type -> sql_injectable_prim (channel t) val sql_client : sql_injectable_prim client @@ -512,6 +514,16 @@ val checkbox : formTag bool [] [Checked = bool] +type file +val fileName : file -> option string +val fileData : file -> blob + +type files +val numFiles : files -> int +val fileNum : files -> int -> file + +val upload : formTag files [] [Value = string, Size = int] + con radio = [Body, Radio] val radio : formTag string radio [] val radioOption : unit -> tag [Value = string] radio [] [] []