Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341527 - Hide ugly "fakepath" text on import
Summary: Hide ugly "fakepath" text on import
Status: RESOLVED WORKSFORME
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 13:59 EDT by Wim Jongman CLA
Modified: 2013-06-07 14:32 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wim Jongman CLA 2011-03-31 13:59:56 EDT
i have a project exported that i now try to import. On the import prompt, i navigate to the zip file in my downloads directory. The input box returns with the path c:\fakepath\EX.zip This is not where I stored my zip. 

I create a c:\fakepath and copy the zip in there and select import again. I see a upload percentage counter but after the import nothing is placed in the root. 

Then I create a subfolder and press import on that. After the same process the files are loaded in that subdirectory.
Comment 1 John Arthorne CLA 2011-03-31 15:54:24 EDT
If you just ignore the "fakepath" and click finish it should work. At least it works for me on Win 7 with Chrome and IE 9. The "fakepath" is a browser security "feature"...

http://acidmartin.wordpress.com/2009/06/09/the-mystery-of-cfakepath-unveiled/

This is even mentioned in the HTML5 spec:

http://www.w3.org/TR/html5/Overview.html#dom-input-value-filename

Ideally we could hide this ugliness in some way though. We don't get to know the path, but we could insert the simple file name or some other text to let the user know we processed their selection.
Comment 2 Wim Jongman CLA 2011-03-31 18:24:48 EDT
hi, yes i figured this was some cloaking device. However, I did not manage to insert my zip into the root project which is my main issue. Creating a subfolder in the project, restoring the zip into that and then move back to the root made me restore my website.  

I was working on github.
Comment 3 Anthony Hunter CLA 2013-06-07 14:32:46 EDT
This problem no longer occurs on IE 10 which is the minimal version of IE supported by Orion 3.0.