Changes

Jump to navigation Jump to search
95 bytes added ,  15:48, 31 July 2013
m
no edit summary
</pre>
All input elements will be put into a [[#Map module|map]] by using the element name as key. File elements will be treated differently , as multiple files can be uploaded at once using the {{Code|multiple}} attribute. All files will be put into a map using the file name as key and this map is accessible using {{Code|files}} as key of the original map. See the following example to store all uploaded files into a specific directoryand reports the size and the name of the file:
<pre class="brush:xquery">
let $content := $files($name)
let $size := count(convert:binary-to-bytes($content))
return ( file:write-binary("files/", $content), <file size="{$size}">{$name}</file> )
};
</pre>
administrator, editor
28

edits

Navigation menu