Changes for page WOFileUpload

Last modified by David Holt on 2012/01/30 22:18

From version 16.1
edited by Kieran Kelleher
on 2011/05/06 17:22
Change comment: There is no comment for this version
To version 22.1
edited by Gavin Eadie
on 2011/04/27 09:52
Change comment: minor typos while exploring new entries ..

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.kieran
1 +XWiki.gavineadie
Content
... ... @@ -27,7 +27,7 @@
27 27  
28 28  | filePath | The name of the file being uploaded, including the full path when the client is on Windows. To get only the name of the file without the full path, you can use {{code}}NSPathUtilities.lastPathComponent(filePath){{/code}}
29 29  | data | The file being uploaded will be stored in a [[NSData>>http://www.webobjects.me/API/wo542/com/webobjects/foundation/NSData.html]] object. Please note that the entire file will be in-memory, so beware of out-of-memory errors if users upload large files.
30 -| inputStream | The binding will be set to an InputStream that points to the file upload. Note that the input stream points directly to the multipart request body part incoming stream and thus you **must** consume this input stream and close it inside the current request action logic. If you use this binding, you can only have one WOFileUpload element in your form, and it have to be the last element of the form and the form's multipleSubmit attribute must be set to false. Our advice, just use streamToFilePath.
30 +| inputStream | The file will be streamed to a Java InputStream object that represents the content of the file. If you use that binding, you can only have one WOFileUpload element in your page, and it have to be the last element of the page and the form's multipleSubmit attribute must be set to false.
31 31  | bufferSize | Sets the size (in bytes) of the buffer used by the outputStream and streamToFilePath attributes. The default buffer size is 512KB. There is no reasonable restriction on the buffer size.
32 32  | outputStream | WebObjects copies the file upload data from the content to the outputStream specified by this attribute.
33 33  | streamToFilePath | WebObjects writes the file upload data from the content directly to the file path specified in this attribute. This is an atomic operation~-~--the data is written to a temporary file, which is renamed when the process is complete.