Unanswered Upload Files From a Directory ASP.NET MVC

  • Tuesday, August 21, 2012 12:31 AM
     
     

    Hello everybody

    I wanted to upload files from a directory and i want all of the files in the directory uploaded. The directory is stored on a string variable and wanted to store/upload it into a Request.File so that i can evaluate the file thats been uploaded.

    Currently, im able to get the filepaths using Directory.GetFiles method.

    Its an mvc app and i want to process everything on the controller side. The only input tag on the view should be a textbox wherein you can paste the directory.

    Can Request.File be achieved without using a File Input Tag and just use a string directory as a replacement?

    Anyone?

All Replies

  • Tuesday, August 21, 2012 8:51 AM
     
     
    The ASP.NET MVC forums http://forums.asp.net/1146.aspxis the better place for such questions

    With Thanks and Regards
    Sambath Raj.C
    click "Proposed As Answer by" if this post solves your problem or "Vote As Helpful" if a post has been useful to you
    Happy Programming!

  • Wednesday, August 22, 2012 8:17 AM
     
     

    Hi Jesse ,

    As recommended by Sambath Raj.C , please use ASP.NET MVC Forums for MVC related questions.

    You would receive better and quicker support there .

    Thanks for your understanding .

    Regards ,


    Lisa Zhu [MSFT]
    MSDN Community Support | Feedback to us