Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 25th, 2004, 07:17 AM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!
Dave

Reply With Quote
  #2 (permalink)  
Old April 25th, 2004, 07:23 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Dave,

Check out my first post in this thread:
http://p2p.wrox.com/topic.asp?TOPIC_ID=12372

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

HtH,

Imar
---------------------------------------
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)

Reply With Quote
  #3 (permalink)  
Old April 25th, 2004, 07:26 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

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? ;)

Cheers!

-Vijay G
Reply With Quote
  #4 (permalink)  
Old April 25th, 2004, 09:30 AM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Dave

Reply With Quote
  #5 (permalink)  
Old April 25th, 2004, 09:49 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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

---------------------------------------
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)
Reply With Quote
  #6 (permalink)  
Old April 25th, 2004, 09:58 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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

Cheers

Imar
---------------------------------------
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)

Reply With Quote
  #7 (permalink)  
Old April 25th, 2004, 10:15 AM
Authorized User
 
Join Date: Mar 2004
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!
Dave

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serializing photos/files to a database w/ MySQL ironchef Pro JSP 1 December 19th, 2007 11:28 PM
How to add 5 more photos js32821 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 September 3rd, 2007 12:48 PM
Displaying photos via a database Mike707 Dreamweaver (all versions) 12 April 17th, 2006 12:33 AM
Ridiculus photos shapira BOOK: Professional Crystal Reports for VS.NET 0 March 7th, 2005 08:11 PM
Photos in access kev_79 Access 1 July 24th, 2003 02:24 PM



All times are GMT -4. The time now is 12:59 PM.


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