p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   Uploading Photos (http://p2p.wrox.com/showthread.php?t=12248)

microchip April 25th, 2004 07:17 AM

Uploading Photos
I have been searching the net to learn how to allow the user to upload a photo to my web site. I have seen some code on the 'net that has some proprietary-looking stuff in it. My questons:
1) Is there a straight-forward way to accomplish this?
2) Do I have to buy a third-party product to accomplish this?
3) Is there some sample code to accomplish this?

Thanks in advance!

Imar April 25th, 2004 07:23 AM

Hi Dave,

Check out my first post in this thread:

It explains what you need to upload files, and provides links to a page where you can download the required components and code samples.


Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Kabouter by Hans Teeuwen (Track 10 from the album: Trui Cd 1)

happygv April 25th, 2004 07:26 AM

1) http://www.15seconds.com/Issue/010522.htm
This uses XML for uploading. It has got good explanation there.

2) It is your call to go for third party aupload component. There are many such, one of which I can suggest you would be ASPUpload component. You can download trial version of this from www.aspupload.com

3) In both the cases above, the code is available. You can check that from the respective websites.

Hope that Helps.
Isn't that too quick? ;)


-Vijay G

microchip April 25th, 2004 09:30 AM

In response to Imar: Your reply suggests installing Dundas. I can't install anything on my web host's server. Installing Dundas on every client that uses my web site would be impossible. Am I missing something?

In response to Vijay G: The article is way too complicated. It's like an IBM book. It assumes you already know what you are looking for. It can't be my call to go for a third party component, because I don't know enough about this stuff to MAKE that call. Also, ASPUpload costs $149.

Yes, that was a very quick reply. Thanks!

Thank you both, but my needs are very simple: allow the user of my web site to send me a picture. Is this that difficult and involved to implement? If it is, I will have to resort to having thme just e-mail a picture as an attachment. I would hate to do that, but...

Thanks again

Imar April 25th, 2004 09:49 AM

It's not difficult and involved to implement if you're allowed to install a custom DLL on the server. There is no need to install anything on the client; the browser already support this by knowing how to deal with an <input type="file" /> form field. The Dundas control is, IMO, about as good as the ASPUpload control but it's free. If your ISP doesn't allow registering custom components, ask them if they already have another component available. Many ASP hosting sites do offer this functionality.

Microsoft also has an upload control that is installed on the server by default. It's called the "Microsoft Posting Acceptor", is buggy as hell and I would certainly not recommend it. However, if you can't install anything on the server, it may be a good alternative.

The final solution is to read this: http://www.lewismoten.com/CodeLibrary/Browse/ASP/[All]/1.htm It provides code to allow a server side upload without any COM component.

If all this doesn't help, you should either change hosts, become an IBM book expert, or ask your users to send the file by e-mail ;)

Hope this helps,


Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: The State We're In by The Chemical Brothers (Track 7 from the album: Come With Us)

Imar April 25th, 2004 09:58 AM

One more thing: I am not sure if the Posting Acceptor still exists on Windows versions after NT4. It used to be a part of the Windows NT Option Pack, but I don't know if it made the upgrade to Win2K.

If your host supports ASP.NET, you can also use an input type="file" control that runs on the server. For a simple article, check out this link: http://www.codeproject.com/aspnet/fileupload.asp


Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Coldsweat by The Sugarcubes (Track 6 from the album: Life's Too Good)

microchip April 25th, 2004 10:15 AM

That is EXACTLY the kind of information I am looking for: technical advice and info mixed with opinions based on experience. Imar, you gave me enough ideas so I should be able to get this done, one way or the other. Thank you so much!

All times are GMT -4. The time now is 01:12 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.