Changes for page WOFileUpload
Last modified by David Holt on 2012/01/30 22:18
From version 31.1
edited by Pascal Robert
on 2011/04/26 18:38
on 2011/04/26 18:38
Change comment:
There is no comment for this version
To version 33.1
edited by Kieran Kelleher
on 2011/04/27 03:10
on 2011/04/27 03:10
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. probert1 +XWiki.kieran - Content
-
... ... @@ -10,14 +10,23 @@ 10 10 11 11 {{code}} 12 12 13 -WOFileUpload { filePath=aPath; data=fileData; [inputStream=fileName]; [bufferSize=sizeKB]; [outputStream=fileName]; [streamToFilePath=filePath]; [overwrite=[boolean]]; [finalFilePath=filePath];} 13 +WOFileUpload { 14 + filePath=aPath; 15 + data=fileData; 16 + [inputStream=fileName]; 17 + [bufferSize=sizeKB]; 18 + [outputStream=fileName]; 19 + [streamToFilePath=filePath]; 20 + [overwrite=[boolean]]; 21 + [finalFilePath=filePath]; 22 +} 14 14 15 15 {{/code}} 16 16 17 17 = Bindings = 18 18 19 -| 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}} 20 -| 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. 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 +| 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. 21 21 | 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. 22 22 | 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. 23 23 | outputStream | WebObjects copies the file upload data from the content to the outputStream specified by this attribute. ... ... @@ -50,3 +50,11 @@ 50 50 </wo:form> 51 51 52 52 {{/code}} 62 + 63 += Related documents = 64 + 65 +[[ERXWOFileUpload>>http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/extensions/components/_private/ERXWOFileUpload.html]] 66 +[[AjaxFileUpload>>http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/ajax/AjaxFileUpload.html]] 67 +[[ERAttachment>>WONDER:ERAttachment Framework]] 68 +[[Database vs Filesystem>>WO:Development-Database vs Filesystem]] 69 +[[Localization and Internationalization>>WO:Development-Localization and Internationalization]]