PC Review


Reply
Thread Tools Rate Thread

asp:FileUpload seems to give me the filename but not the complete path.

 
 
AAaron123
Guest
Posts: n/a
 
      10th Sep 2009
<asp:FileUpload> seems to give me the filename but not the complete path.

I'm guessing that it a security thing and I can't get it.

Is that correct?



Thanks

 
Reply With Quote
 
 
 
 
AAaron123
Guest
Posts: n/a
 
      10th Sep 2009
AAaron123 wrote:
> <asp:FileUpload> seems to give me the filename but not the complete
> path.
>
> I'm guessing that it a security thing and I can't get it.
>
> Is that correct?
>
>
>
> Thanks


Looks like IE8 remove the path.

I was just listing it any way.

 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      10th Sep 2009
Hi,

> Looks like IE8 remove the path.


Correct and the edit box should be read only.

See
http://blogs.msdn.com/ie/archive/200...rotection.aspx
and the "File Upload Control" section :

"Additionally, the "Include local directory path when uploading files"
URLAction has been set to "Disable" for the Internet Zone. This change
prevents leakage of potentially sensitive local file-system information to
the Internet. For instance, rather than submitting the full path
C:\users\ericlaw\documents\secret\image.png, Internet Explorer 8 will now
submit only the filename image.png."

--
Patrice



 
Reply With Quote
 
AAaron123
Guest
Posts: n/a
 
      10th Sep 2009
Patrice wrote:
> Hi,
>
>> Looks like IE8 remove the path.

>
> Correct and the edit box should be read only.
>
> See
> http://blogs.msdn.com/ie/archive/200...rotection.aspx
> and the "File Upload Control" section :
>
> "Additionally, the "Include local directory path when uploading files"
> URLAction has been set to "Disable" for the Internet Zone. This change
> prevents leakage of potentially sensitive local file-system
> information to the Internet. For instance, rather than submitting the
> full path C:\users\ericlaw\documents\secret\image.png, Internet
> Explorer 8 will now submit only the filename image.png."


As an aside:
You can copy it with javascript on the onclientclick event into something,
but you get someting like:

C:/fakefolder/filename.txt

Cute

I only listed it as info because the controls text box gets cleared after
the upload.
Got a supprise when it stoped working.

Thanks


 
Reply With Quote
 
Martin M
Guest
Posts: n/a
 
      12th Oct 2009
Try XUploader from www.springsys.com, it's nice.


> <asp:FileUpload> seems to give me the filename but not the complete path.
>
> I'm guessing that it a security thing and I can't get it.
>
> Is that correct?
>
>
>
> Thanks
>



 
Reply With Quote
 
AAaron123
Guest
Posts: n/a
 
      13th Oct 2009
I check that out.

thanks


Martin M wrote:
> Try XUploader from www.springsys.com, it's nice.
>
>
>> <asp:FileUpload> seems to give me the filename but not the complete
>> path.
>>
>> I'm guessing that it a security thing and I can't get it.
>>
>> Is that correct?
>>
>>
>>
>> Thanks



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting drive, path filebasename or extension from complete filename? Thomas Lebrecht Microsoft VB .NET 2 29th Mar 2009 05:52 PM
FileUpload and filename using personal web starter kit Karl Microsoft ASP .NET 0 15th Sep 2006 09:02 PM
Seeking util to give path and filename Franklin Windows XP Customization 18 7th Oct 2004 08:46 PM
Seeking util to give path and filename Franklin Windows XP General 18 7th Oct 2004 08:46 PM
Seeking util to give path and filename Franklin Freeware 19 7th Oct 2004 08:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:17 AM.