Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   FileUpLoad Control - Retrieving full pathname (http://www.velocityreviews.com/forums/t779684-fileupload-control-retrieving-full-pathname.html)

marathoner 03-14-2007 03:37 PM

FileUpLoad Control - Retrieving full pathname
 
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 03-15-2007 07:22 PM

Re: FileUpLoad Control - Retrieving full pathname
 
On 14 Mrz., 16:37, "marathoner" <rajk2...@msn.com.invalid> wrote:
> 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 03-15-2007 07:25 PM

Re: FileUpLoad Control - Retrieving full pathname
 
On 14 Mrz., 16:37, "marathoner" <rajk2...@msn.com.invalid> wrote:
> 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] 03-22-2007 03:18 AM

Re: FileUpLoad Control - Retrieving full pathname
 
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.

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


"marathoner" <rajk2000@msn.com.invalid> wrote in message
news:u5DuP6kZHHA.4856@TK2MSFTNGP03.phx.gbl...
> 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
>




All times are GMT. The time now is 05:57 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57