Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358248 - File upload handler does not return actual selected filename
Summary: File upload handler does not return actual selected filename
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: Incubator (show other bugs)
Version: 1.5   Edit
Hardware: All Windows 7
: P3 normal (vote)
Target Milestone: 1.5 M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 10:03 EDT by Austin Riddle CLA
Modified: 2011-09-20 11:34 EDT (History)
2 users (show)

See Also:


Attachments
Patch for parent directory creation with hash (2.03 KB, patch)
2011-09-20 10:47 EDT, Austin Riddle CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Austin Riddle CLA 2011-09-20 10:03:32 EDT
The file upload handler does not return the actual file name, but rather appends a hash to it before the file extension.

Instead, if the file hash (which is there to prevent conflicts) is used to create an additional path entry, then the file can have the same name as what the user selected. Then the fileupload consumers would not have to do string manipulation to determine the filename.
Comment 1 Austin Riddle CLA 2011-09-20 10:47:37 EDT
Created attachment 203690 [details]
Patch for parent directory creation with hash
Comment 2 Ralf Sternberg CLA 2011-09-20 10:57:35 EDT
+1
Creating unique directories and keeping the file names intact seems reasonable to me.
Comment 3 Ivan Furnadjiev CLA 2011-09-20 11:30:12 EDT
+1 Sounds good to me too.
Comment 4 Austin Riddle CLA 2011-09-20 11:34:08 EDT
Patch applied to CVS HEAD.