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

Bug 281481

Summary: Path in Upload-Widget using IE8 (org.eclipse.rwt.widgets.upload)
Product: [RT] RAP Reporter: rollo <rollohusa>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: stefan.roeck
Version: 1.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows All   
Whiteboard:

Description rollo CLA 2009-06-25 06:51:53 EDT
When I choose the file "file.txt" via the browse button, then stands in the Textfield "C:\fakepath\file.txt" as path.

The upload is still working, but where does this strange path comes from?
Comment 1 Stefan Röck CLA 2009-06-25 08:32:59 EDT
Fixed in CVS-Head.
This text widget displayed in the upload widget is not the "real" input field but a standard qx widget. The displayed text is synced from the input text using JS. IE8 recognizes this as a leak (the script can get information about the local file system structure) and displays "C:\fakepath" instead of the real path. Firefox always returned the file name only but not the complete path. This behavior is now applied in general to have the same behavior for all browsers.