Community discussion forum

Uploading Files Using ASP.NET

This is a comment thread discussing Uploading Files Using ASP.NET
  • 9 years ago

    This thread is for discussions of Uploading Files Using ASP.NET.

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 2 years ago

    hi,
    Nice piece of code..
    I have a requirement where i need to upload a file to another system in the LAN.
    I have an ftp appication which does this for me. But i need to do it from ASP.NET itself..
    Is there a way to enhance the above code to transfer files across systems
    or can i call my ftp application from ASP.NET ?
    My ftp application is written in VB.

    Thanks in Anticipation.

    kris.











  • 2 years ago

    but this code cannot upload huge file size and this is a big problem for me

     

  • 2 years ago

    In Web.config change the value of maxRequestLength ...

    Example (for 100mb):

      <httpRuntime maxRequestLength="100000" />

  • 2 years ago

    System.UnauthorizedAccessException: Access to the path "d:\build_info" is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at System.Web.HttpPostedFile.SaveAs(String filename) at WebApplication1.WebForm1.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\webapplication1\webform1.aspx.cs:line 56

     

    what is this problem means??

  • 2 years ago

    Have you solved this problem?  You might need to change the file right access right property for the folder and/or for the file. 

    What exactly is at line 56?

Post a reply

Enter your message below

Sign in or Join us (it's free).