Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / March 2007

Tip: Looking for answers? Try searching our database.

FileUpLoad Control - Retrieving full pathname

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
marathoner - 14 Mar 2007 16:37 GMT
When I use the FileUpLoadControl to select a file, I can only retrieve the
filename that was selected.  I want to know how to retrieve the full
pathname of the filename selected.

Marathoner
Yvonne - 15 Mar 2007 20:22 GMT
> When I use the FileUpLoadControl to select a file, I can only retrieve the
> filename that was selected.  I want to know how to retrieve the full
> pathname of the filename selected.
>
> Marathoner

Hy,
Why do you need the path? The filecontent is in the PostedFile
property and the filename in the Filename property.
Kind regards, Shiny
Yvonne - 15 Mar 2007 20:25 GMT
> When I use the FileUpLoadControl to select a file, I can only retrieve the
> filename that was selected.  I want to know how to retrieve the full
> pathname of the filename selected.
>
> Marathoner

Hy,
Why do you need the path? You have the content of the file in your
FileUploadControl and you can get it if you call SaveAs.
Kind regards, Shiny
Steve C. Orr [MCSD, MVP, CSM, ASP Insider] - 22 Mar 2007 04:18 GMT
Browser security prevents servers from inspecting a users hard drive.  Would
you want any old web site poking its way around your personal files?
If you really must do something like that then you'd need to create an
ActiveX control.

Signature

I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

> When I use the FileUpLoadControl to select a file, I can only retrieve the
> filename that was selected.  I want to know how to retrieve the full
> pathname of the filename selected.
>
> Marathoner

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.