Inserting Files - Can it be done?

Discussion in 'Databases - SQL Server 2008 / MySQL' started by sladmin, Mar 19, 2007.

  1. sladmin CSNM Reseller

    Hey,

    I need a way of allowing users to upload files to the web and storing either the file path on the server or the files themselves. Can I store files in a database?

    If not does anyone have any ways of uploading in ASP?

    Thanks,
  2. Piercy Rather crap web designer

    Easiest way to upload is using one of the built in coms that come with the hosting account such as ASPUpload. Have a look in the KB in support for example codes (click here)

    Easiest way to do this is to upload to a single directory (domain/upload) then just capture the file name (myfile.jpg) in the db. When you then to make reference in your code to them you simple call the file name into your script e.g <img src=upload/"myfile.jpg"

    Hope that makes sense if not give us a shout
  3. sladmin CSNM Reseller

    Thanks Mark I did see those scripts in the knowledgebase (they have now been added to my own :p)

    I took a look in the KB and saw the Dundas Upload. I looked at the code but unsure as to how to implement it. Can someone help me out please? Link for the kb article is here.

    Thanks,
  4. Piercy Rather crap web designer

    Is Dundas still supported? I am sure I had looked at it a while ago but could not get any help on it. :sad:

    ASP Upload though is easy and there are easy to use help files and actual examples on their website
  5. Ben Collier CSNM Customer

    I personally use the asp.net 2.0 file upload control- have implemented it many times, currently I am developing one that uploads an image, creates a thumbnail in the database and stores the original image too.

    All good fun!

    Ben
  6. sladmin CSNM Reseller

    Well I'm not sure if it's still supported all I know is that it was on the scripting list. I looked at asp upload but you have to pay for their latest version. It's so expensive and all I want to do is upload files lol

    I can make out what the code does but its just implementing it into my application.
  7. Carl Shepherdson Proprietor

    We have both Dundas Upload and ASPUpload across all web servers:

    Dundas Upload - Example Code here
  8. Nick Irvine Secretly the main man

Share This Page