File upload
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2014 06:32 AM
Hi,
I have made an action in alfresco for the folders which displays an UI having browse button for taking files. So, clicking on this action it calls a ftl file which is having html and java script functions. In case of an internet explorer it gives me the real path from where i loaded the file but in chrome it is giving some "C:\fakeath\*…xls". Can any one help me with this on how to solve it and get the real path in chrome also instead of fakeath.
Thanks in advance
I have made an action in alfresco for the folders which displays an UI having browse button for taking files. So, clicking on this action it calls a ftl file which is having html and java script functions. In case of an internet explorer it gives me the real path from where i loaded the file but in chrome it is giving some "C:\fakeath\*…xls". Can any one help me with this on how to solve it and get the real path in chrome also instead of fakeath.
Thanks in advance
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2014 05:39 AM
Hi,
Short answer is, with just javascript/html, you can't.
It actually is a privacy breach let websites know about the full path. When I'm uploading a file I'm OK to give them the file but not the whole path on my computer where it's located.
Which is why chrom, firefox and latest versions of IE hide the path.
More details here:
http://meta.stackoverflow.com/questions/68471/the-image-uploader-shows-fakepath-as-path-when-using-c...
So if you really need the path for some reason, you'll have to use flash/java. I think with those you'll be able to retrieve it.
But I would recommend avoiding it.
Short answer is, with just javascript/html, you can't.
It actually is a privacy breach let websites know about the full path. When I'm uploading a file I'm OK to give them the file but not the whole path on my computer where it's located.
Which is why chrom, firefox and latest versions of IE hide the path.
More details here:
http://meta.stackoverflow.com/questions/68471/the-image-uploader-shows-fakepath-as-path-when-using-c...
So if you really need the path for some reason, you'll have to use flash/java. I think with those you'll be able to retrieve it.
But I would recommend avoiding it.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2014 05:59 AM
Thanks for replying Scouil. Can you tell me how to do using that or link me to the age explained the same.
Thanks again
Thanks again
