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

Bug 372649

Summary: [FileDialog] provide ability to obtain content types for uploaded files
Product: [RT] RAP Reporter: Austin Riddle <austin.riddle>
Component: IncubatorAssignee: Project Inbox <rap.incubator-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Austin Riddle CLA 2012-02-27 10:10:30 EST
After struggling with a solution here:


Ralf and I think a good solution that will not break the FileDialog API is to provide an additional matching file in the temp directory that contains the content type for the uploaded file.  Then clients can access the content type if it is there.
Comment 1 Austin Riddle CLA 2012-02-27 12:19:25 EST
Since the existing implementation wrote the file that was uploaded to its own folder anyway, now the DiskFileUploadReceiver adds a content-type.tmp file to that folder as well.

Changes are in CVS HEAD.
Comment 2 Ivan Furnadjiev CLA 2012-03-19 09:47:45 EDT
Austin, can we close this bug?
Comment 3 Austin Riddle CLA 2012-03-19 15:07:21 EDT
The content type is accessible now.