File upload problem



Hi,

I want to upload *.jpg files to server using FileUpload control. Hosting is
shared and administrator informed me that I have to use medium trust level
to upload files. How to achieve that?

I get error:

: The application attempted to perform an operation not allowed by the
security policy. To grant this application the required permission please
contact your system administrator or change the application's trust level in
the configuration file.


Line 10: FileUpload1.SaveAs("\images\res\" & FileUpload1.FileName)I
am new to ASP.NET ?

Thanks a lot!
Domac


.



Relevant Pages

  • Re: need safe stats counter
    ... I am not an experienced web designer. ... they said that I can UPLOAD ... > My reply is at the bottom of your sent message:>>> Hi, I am looking for a hits counter stats that I can upload so that I can place it in the website that I am making. ... I>> am using the software and templates of my hosting company but those>> hits counters are too large and I want a different look. ...
    (microsoft.public.security)
  • Re: upload_tmp_dir
    ... Are you absolutely sure they didn't mean: 'Don't upload files by FTP ... decent hosts out there. ... Unfortunaely I cannot give you any hosting adviuce, ... some nice fellow i might gave me some additional hosting free ...
    (comp.lang.php)
  • Re: directly uploading bookmarks from browser
    ... things of how/where I'm hosting my website. ... my hosting is on one of those big commercial discount ... I have all kinds of usernames, passwords, ftp server adresses, upload ... Or to put it in an other way: a deamon style program in combination ...
    (comp.programming)
  • Re: directly uploading bookmarks from browser
    ... things of how/where I'm hosting my website. ... my hosting is on one of those big commercial discount ... I have all kinds of usernames, passwords, ftp server adresses, upload ... Or to put it in an other way: a deamon style program in combination ...
    (comp.programming)
  • Re: File upload problem
    ... I want to upload *.jpg files to server using FileUpload control. ... shared and administrator informed me that I have to use medium trust level ... You can explicitly grant ...
    (microsoft.public.dotnet.framework.aspnet)