Welcome Guest Search | Active Topics | Sign In | Register

Get Full Path Name from AJAXUploader Options
JjsPatrick
Posted: Friday, June 10, 2011 10:57:17 AM
Rank: Member
Groups: Member

Joined: 9/2/2008
Posts: 14
Hello Team,

I am using Eo web Menu 2010 (8.0.46.2)

I Need to get full Path Name from the AJAXUploader to store the Actual path into the database.
Please let me know.

Thanks
Patrick
eo_support
Posted: Friday, June 10, 2011 11:02:26 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There is no way to do that. Most modern browsers DO NOT pass the actual path to the server at all for security reasons. The idea is user has only chosen to send a file to you, as such the only information you can collect is the file and the file name. Where the file is actually stored on the user's computer might be something sensitive and you should not be able to have access to that as a server application.

Thanks!
JjsPatrick
Posted: Friday, June 10, 2011 11:27:45 AM
Rank: Member
Groups: Member

Joined: 9/2/2008
Posts: 14
Hi,
Thanks for your quick reply.

But in my application people can upload to Server or they can prefer to choose only in Local Path. Is there any other way to easily get the local path from client Side?

Thanks
eo_support
Posted: Friday, June 10, 2011 12:57:49 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Can you explain what you mean by "they can prefer to choose only in local path"?

Thanks
JjsPatrick
Posted: Tuesday, June 14, 2011 1:47:15 PM
Rank: Member
Groups: Member

Joined: 9/2/2008
Posts: 14
"they can prefer to choose only in local path" that means Users just select the File but I shouldn't upload the file instead I should store the file full Path.

Time being I solved the problem only in Internet Explorer(adding site to Trusted Zone). But for Firefox and Chrome there is no solution.
eo_support
Posted: Tuesday, June 14, 2011 2:01:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

That's why we told you that there is no way to do it. Those browsers don't give you the full path no matter what. IE used to give you the full path but since IE 8 it gives you a "fakepath" by default. It is very apparent that all browsers are trying to make sure you do NOT get the full path information and the trend is that it will only be betting more and more secure in future browser releases. So I would not believe it's a good idea for you to go against this trend and insist that you have to get the full path ---- if the browser don't want to give it to you and your app runs on the browser, then you won't have it.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.