uploading files using asp.net

Discussion in 'ASP.NET 2.0' started by homes2move2, Nov 25, 2008.

  1. Hi,

    I need to offer the option for site users to upload an image to their user profile.

    I've never done this before using ASP.NET so any advice on what to use (built-in features of 2/3.5, aspupload package etc) would be appreciated.

    My question is this:

    When i upload these files (images) do i have to store them in the database, or does DiscountASP let you save directly to the file system your site is held on?

    Many Thanks,

    Jay
     
  2. mjp

    mjp

    How they are stored depends on the method you use (sorry, I can't make any suggestions as far as that goes), but you can certainly write files to the directories in your account. And that's the method I would recommend, rather than database storage. You have a lot more disk space available to you on the web side than the SQL side, and reading binaries out of a database is kind of an unnecessary overhead to impose on your application (IMHO).
     
  3. thanks mjp, that's exactly what i wanted to know!
     

Share This Page