Upload File to server using C#

Posted on 2008-11-13
Last Modified: 2013-11-07
I'm working with ASP.NET and I have a form that is supposed to upload files, excluding images, to the server.
I'm not sure where to start.

I'm new to C#.  I've done this in PHP and have no clue of how to convert to C#.

Any direction will be appreciated.

Question by:Isaac
    LVL 6

    Accepted Solution


    Believe it or not Microsoft actually has a useful article piecing out the entire thing you want to do.
    LVL 12

    Expert Comment

    Do you want to post the code, we can probably help you get a hello world for fileuploads going.
    LVL 5

    Author Comment

    post which code the php or what I have so far in ASP.NET (just a form with a browse and upload button)
    LVL 5

    Author Comment

    Thanks matthewrhoades

    That's an excellent start!!
    LVL 6

    Expert Comment

    Let me know if you get any specific errors or questions using the information.  Once you get the framework in place we can troubleshoot the rest.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now