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 2005

Tip: Looking for answers? Try searching our database.

File Upload with asp.net by one Click

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stefan Berger - 22 Jul 2005 09:03 GMT
Hello everybody,

i have a proble with uploading files in asp.net.
i want to make a special file upload-page without displaying the common
html-file-upload-control.
i have a made an additional upload-button which shold display the
open-file-dialog an then immediatly submit the form.
it's no problem to call the open-file-dialog by javascript (
inputfilecontrol.click() ), but if i want to submit the form i get an error
'access denied' and the file-upload-control is emty.

For my application its needfull to do a file-upload by only one click!

can enybody help me
Teemu Keiski - 22 Jul 2005 11:29 GMT
Are you trying to set something to the upload control itself like trying to
set the path manually? Which code line gives you the access denied error?

It is nearly impossible to change those behaviors as they are per standards
and browser implementations. Uploading is concerned with security issues so
there's not much you can do. I'm quire sure it takes user to explicitly
select the files and then send the form, in separate steps.

Signature

Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

> Hello everybody,
>
[quoted text clipped - 10 lines]
>
> can enybody help me

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.