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 / General / July 2007

Tip: Looking for answers? Try searching our database.

HtmlInputFile control problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Srini - 20 Jul 2007 22:08 GMT
Hi,

Any one can help me out in this regard? The problem is:
After selecting the file using HtmlInputFile Control(Browse option), how to
set selected value(File path) between different postbacks? Because as we know
we can't set the value properity as it is get properity. So if any hack is
there please let me know.
Signature

Thanks
Srini.

Göran Andersson - 20 Jul 2007 22:19 GMT
> Hi,
>
[quoted text clipped - 3 lines]
> we can't set the value properity as it is get properity. So if any hack is
> there please let me know.

If there is any hack, it will only work in a single browser, and it will
stop working as soon as the author of the browser is able to fix it.
Allowing anybody else than the user to select the file for upload would
be a serious security hole.

There is no legitimate way of using an HtmlInputFile to get a file from
the visitors computer without the visitor explicitly selecting the file
for upload.

The file will be sent to the server when the form is posted. You have to
take care of the file data at that moment, otherwise the user has to
upload the file again.

Signature

Göran Andersson
_____
http://www.guffa.com


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.