Title:
Bug 82406:(Watson Migration Closure)Please provide a function / tag to retrieve the current uploaded file(s) information
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): David Boyer / David Boyer (MisterDai)
Created: 03/11/2010
Components: File Management, VFS-S3
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Minor / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
Please provide a function / tag to retrieve the current uploaded file(s) information. This would make approaches to handling uploads easier, as it could provide the upload size and file type, before the developer has to worry about it's destination. This also avoids the need for the developer to delete invalid uploads as they could avoid the step of moving it anywhere.Example:GetUploadInfo()- Optional parameter, fieldName, to limit data returned to only that field.Returns a data structure like:{ upload1: { size: 100000, filename: 'image.jpg', tempFilename: 'ab642c.tmp', tempPath: 'c:\cfusion\temp\ab642c.tmp' }}Example CFML code usage: <cfset upInfo = GetUploadInfo() /><cfif StructKeyExists(upInfo, 'image') And upInfo['image'].size Lte upLimit> <cffile action="upload" fileField="image" destination="c:\files\upload" /></cfif>
Method:
Result:
N/A
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041133
External Customer Info:
External Company:
External Customer Name: David Boyer
External Customer Email: 37221ACB4B0AA9E3992015A9
External Test Config: 03/11/2010
Attachments:
Comments: