Changes for page WOFileUpload
Last modified by David Holt on 2012/01/30 22:18
From version 13.1
edited by Pascal Robert
on 2011/05/08 02:36
on 2011/05/08 02:36
Change comment:
There is no comment for this version
To version 18.1
edited by Pascal Robert
on 2011/05/08 02:34
on 2011/05/08 02:34
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -31,9 +31,9 @@ 31 31 | inputStream | String | in | No | 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. 32 32 | bufferSize | int | in | No | 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. 33 33 | outputStream | String | out | No | WebObjects copies the file upload data from the content to the outputStream specified by this attribute. 34 -| streamToFilePath | String | in | No | 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.35 -| overwrite | boolean | in | No | When streamToFilePath is specified, this binding determines whether WebObjects should overwrite an existing file. Defaults to false.36 -| finalFilePath | String | out | No | When streamToFilePath is specified, its value is set to the actual file location (it may differ from the streamToFilePath value if there is a problem renaming the file).34 +| streamToFilePath | String | in | No |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. 35 +| overwrite | boolean | in | No |When streamToFilePath is specified, this binding determines whether WebObjects should overwrite an existing file. Defaults to false. 36 +| finalFilePath | String | out | No |When streamToFilePath is specified, its value is set to the actual file location (it may differ from the streamToFilePath value if there is a problem renaming the file). 37 37 38 38 = Examples = 39 39 ... ... @@ -70,7 +70,6 @@ 70 70 71 71 [[ERXWOFileUpload>>http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/extensions/components/_private/ERXWOFileUpload.html]] 72 72 [[AjaxFileUpload>>http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/ajax/AjaxFileUpload.html]] 73 -[[NSPathUtilities.lastPathComponent>>http://www.webobjects.me/API/wo542/com/webobjects/foundation/NSPathUtilities.html#lastPathComponent(java.lang.String)]] 74 74 [[ERAttachment>>WONDER:ERAttachment Framework]] 75 75 [[Database vs Filesystem>>WO:Development-Database vs Filesystem]] 76 76 [[Localization and Internationalization>>WO:Development-Localization and Internationalization]]