Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

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 August 29th, 2003, 09:30 AM
steveup steveup is offline
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Newfoundland, Canada
Posts: 30 steveup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 39 sec
Reputation Power: 7
PHP Multiple File Upload Over HTTP?

Hello all,
Has anyone played with any utilities such as JUpload etc. to upload an undeterminied amount of files with PHP (Note: I do NOT want to, say generate x number of <input type="file">'s)

Have any of you found a good solution to this problem: A user wants to submit X amount of images to an image gallery application, they want to be able to browse their computer and select multiple files then click submit.

Any ideas????

BTW, I dont want to tell them to zip the files first to make one file.

Thanks!

Steve

Reply With Quote
  #2  
Old August 29th, 2003, 09:48 AM
southwind's Avatar
southwind southwind is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: not-far-enough-south, USA
Posts: 26 southwind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to southwind
I did something similar a while back, but I left the code behind with my former employer.

I believe what I did was this:
1. Ask how many files there are to upload on page 1 (yeah, I know this adds an extra step, but it's necessary if you're going to do it this way).
2. Dynamically build a file upload box for each image they wish to upload, using the array-friendly naming convention for all (something like name="image[x]"). Dispaly this form on page 2.
3. Wrap a loop around however you're currently handling your uploaded images.

Sorry I don't have something to post as an example.

Reply With Quote
  #3  
Old August 29th, 2003, 09:50 AM
colpaarm's Avatar
colpaarm colpaarm is offline
300lb Bench!
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2001
Location: New York
Posts: 2,198 colpaarm User rank is Sergeant (500 - 2000 Reputation Level)colpaarm User rank is Sergeant (500 - 2000 Reputation Level)colpaarm User rank is Sergeant (500 - 2000 Reputation Level)colpaarm User rank is Sergeant (500 - 2000 Reputation Level)colpaarm User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 31 m 13 sec
Reputation Power: 18
I think that you're only choice is to use something like an applet or maybe something from the perl tcl/tk package. Any purely html solution will give you windows (or linux's) internal file upload box. I've seen solutions where the first page asks how many files you want to upload. The next page then generates that many upload boxes. Obviously that's not cool.

I've never used JUpload before but it looks very promising. If you do, maybe you can post back with your results. Sorry I couldn't have been of more help.

Reply With Quote
  #4  
Old August 29th, 2003, 09:53 AM
steveup steveup is offline
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Newfoundland, Canada
Posts: 30 steveup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 39 sec
Reputation Power: 7
Quote:
I've seen solutions where the first page asks how many files you want to upload. The next page then generates that many upload boxes. Obviously that's not cool.


Thanks guys, yeah I dont want to do the 2 page solution at all. Has anyone used an applet / control to do this with any success?


Steve.

Reply With Quote
  #5  
Old August 29th, 2003, 10:02 AM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,225 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 48 m 15 sec
Reputation Power: 174
Quote:
Originally posted by steveup
Thanks guys, yeah I dont want to do the 2 page solution at all. Has anyone used an applet / control to do this with any success?


Steve.


Are you looking for a Java applet that will provide this functionality for you, or are you going to try developing your own?
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever.
Analyze twice; hack once.
The world's first existential ITIL question: If a change is released into production without a ticket to track it,
was it actually released?


About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect -
Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire


Reply With Quote
  #6  
Old August 29th, 2003, 10:07 AM
steveup steveup is offline
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Newfoundland, Canada
Posts: 30 steveup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 39 sec
Reputation Power: 7
Quote:
Originally posted by drgroove
Are you looking for a Java applet that will provide this functionality for you, or are you going to try developing your own?


Yes

I have a few years of Java programming experience, but I've never developped any cool / fancy Applets before. I guess I want an applet / activex sort of thing (similar to JUpload). Ideally I'd like someone to tell me that they've had the same problem and (this) is the solution, or at least a link.


Thanks.

Steve

Reply With Quote
  #7  
Old August 29th, 2003, 10:09 AM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,225 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 48 m 15 sec
Reputation Power: 174
Moved to Scripts board from PHP.

Reply With Quote
  #8  
Old September 5th, 2003, 01:23 PM
mhaller mhaller is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 11 mhaller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
still need infos?

do you still need information about JUpload? i am currently developing yet-another JUpload
take a look at http://www.haller-systemservice.net/jupload/

can give advice for do-it-yourself people, too :-)

Reply With Quote
  #9  
Old July 7th, 2005, 05:56 PM
JavaZOOM JavaZOOM is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 1 JavaZOOM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 41 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
SPAM - deleted!

Last edited by christo : September 8th, 2005 at 04:25 PM.

Reply With Quote
  #10  
Old March 12th, 2007, 08:11 PM
pappas.chris pappas.chris is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 1 pappas.chris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 11 sec
Reputation Power: 0
Question JUpload

Hi Mike...

Nice work on JUpload, I just downloaded 0.90 and I'm getting ready to set it up to save the images into my database. I'm wondering if you know of any articles that you or others have written explaining the best/easiest way to do so!

I could figure it out for myself, (and if I have to I will write the very guide I'm looking for!) but I'd much rather read someone else's suggestions.

Thanks and keep up the awesome work, JUpload is very impressive.

Reply With Quote
  #11  
Old March 15th, 2007, 10:34 AM
b3n's Avatar
b3n b3n is offline
Prisoner of the Sun
Click here for more information.
 
Join Date: Jul 2004
Location: The Mews At Windsor Heights
Posts: 4,450 b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level)b3n User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 2 Months 4 Days 1 h 15 m 34 sec
Reputation Power: 888
Facebook Orkut
Quote:
Originally Posted by mhaller
do you still need information about JUpload? i am currently developing yet-another JUpload
take a look at http://www.haller-systemservice.net/jupload/

can give advice for do-it-yourself people, too :-)

That link leads to a 404 error.
__________________
.
Save The Developers! :: How To Ask Questions The Smart Way :: Cheat Sheets :: PHP :: MySQL :: Flash :: 13 Moon Facebook App.

My Delicious

"All matter is merely energy condensed to a slow vibration. We are all one consciousness experiencing itself - subjectively. There is no such thing as death, life is only a dream. We are the imaginations of ourselves."
- Bill Hicks


"Truth is hidden in the subtle nature of the heart of everything, although it is invisible. One cannot see it from inside and neither from the surface. One can only live and experience it."
- Heart Sutra

Reply With Quote
  #12  
Old March 15th, 2007, 10:40 AM
huyaroo's Avatar
huyaroo huyaroo is offline
:)
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2006
Location: IL
Posts: 1,427 huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)huyaroo User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 303 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 5 Days 1 h 20 m 32 sec
Reputation Power: 190
You can try SWFUpload
__________________



lazyworks

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > PHP Multiple File Upload Over HTTP?


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

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.