Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358248

Summary: File upload handler does not return actual selected filename
Product: [RT] RAP Reporter: Austin Riddle <austin.riddle>
Component: IncubatorAssignee: Project Inbox <rap.incubator-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan, rsternberg
Version: 1.5   
Target Milestone: 1.5 M2   
Hardware: All   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch for parent directory creation with hash none

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.