Crossposted from JaneandRichard

Today I've been researching Upload components for ASP to use in the project I'm working on at the moment. Ideally I want one that does the following:

  • Uploads a file from the client's file system, directly into the database

  • Can upload all types of files, not just images

I had a quick discussion on BNM about this, and also consulted 15 Seconds.

 

I decided to try ASPUpload first, as this was recommended both by BNM and by an ex-colleague of mine. I got this working pretty quickly, but it doesn't seem to be able to present me with the Mime Type (i.e. image/gif etc) and so isn't very useful for handling different kinds of binary data. I know that I could code around this issue, but I'd rather it did it all for me really.

My next thought was to try SA File Up, a product I've used many times before. Unfortunately their evaluation copy expires on 1 May 2001, that's 2 days ago - helpful.

Attempt 3 was ABCUpload. On the plus side, this is a free product. This took a bit longer to get to work, as the help documents are not as comprehensive as ASPUpload. Hidden, on the Object Reference page I found the property I was looking for - MIMEType. Woohoo! But alas, it only seems to be able to work out the Mime Types for images so, PDFs etc are out of the question. And more annoying still, it won't even upload the damn things. Bah!

Attempt number 4. The last of the BNM recommendations. Dundas Upload. Another free offering. The examples don't seem to cover saving to a database, but a more thorough hunt through the documentation found it hidden away. This component has a ContentType property, and seems to insert pdfs, excel spreadsheets as well, so we might just have found our answer. Hurrah!