Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 30th, 2002, 11:47 AM
jhazard jhazard is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 21 jhazard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Upload file related to advert

Hi
I am writing a website that I want to allow users to add an advert and then upload 4 pictures relating to that.

I know how to do a simple file upload but does anyone know of a way of associating their pictures with their advert, without making the user name the files to suit etc. Bit baffled... but, i'm sure it can be done easily once you know how!

Reply With Quote
  #2  
Old September 30th, 2002, 01:42 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
How are you storing the advertisement? Database? Can you add fields to reference the filenames?

Reply With Quote
  #3  
Old October 1st, 2002, 08:11 AM
jhazard jhazard is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 21 jhazard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes the advert is being stored in a mysql database. The user fills in their required advert and then uploads pictures of it. I can add more fields to accomodate a solution...

Reply With Quote
  #4  
Old October 1st, 2002, 10:21 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Create another table that stores an advert-to-picture-path relationship. That way you can have more than 4 pictures per advert if you need them.

Reply With Quote
  #5  
Old October 1st, 2002, 10:26 AM
jhazard jhazard is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 21 jhazard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
So is it possible to grab the names of the files that the user is uploading? If so thats a good solution.

Anybody got any examples that do this?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Upload file related to advert


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway