cancel
Showing results for 
Search instead for 
Did you mean: 

File upload

mrinal3199
Champ in-the-making
Champ in-the-making
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
2 REPLIES 2

scouil
Star Contributor
Star Contributor
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.

mrinal3199
Champ in-the-making
Champ in-the-making
Thanks for replying Scouil. Can you tell me how to do using that or link me to the age explained the same.

Thanks again