locked
Save Uploaded file To System Folder RRS feed

  • Question

  • Hi,

    I have search online but find no solution on how to save uploaded file to system folder.

    This is how my program work.

    1). User upload an excel file to the system.

    2).Content of the excel file is read and saved to database.

    3).Uploaded physical file is saved to a system folder called "'Upload"

    I am currently having problem in step 3.

    Can anyone help?

    Thanks!!

     

    Tuesday, July 5, 2011 9:40 AM

Answers

  • Hi, i have find the solution .

    The code is :

    System.IO.File.Copy(strFileFrom, strFileTo)

     

    • Marked as answer by johnsonlim026 Wednesday, July 6, 2011 7:04 AM
    Wednesday, July 6, 2011 7:03 AM

All replies

  • Hi, i have find the solution .

    The code is :

    System.IO.File.Copy(strFileFrom, strFileTo)

     

    • Marked as answer by johnsonlim026 Wednesday, July 6, 2011 7:04 AM
    Wednesday, July 6, 2011 7:03 AM
  • I’m glad to hear that you resolve this issue. And thank you for sharing your solutions and experience here. It will be very beneficial for other community members who have similar questions.

    If you have any difficulty in future programming, we welcome you to post here again.


    Helen Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, July 6, 2011 9:14 AM