PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old April 3rd, 2003, 08:37 AM
pr0t0ss pr0t0ss is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 3 pr0t0ss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Multiple file upload php

Hi,

following problem/task/wished feature Iīm working on (long time):

Is it possible to upload multiple files through a web form?

I want to avoid everyone editing a article in my cms, uploading the pics he needs per ftp first.
There is a way by zipping them first, I know, but I want to adapt the <form type=file> for adding not only a certain number (by using the "value=file[]" section but by adding n entries to the HTTP_POST_FILES variable from a local directory!

Is there any possibility out there or have I to prog a workaround like zipping them first?

Thanks in advance for your answers!

Reply With Quote
  #2  
Old April 5th, 2003, 06:59 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
you can use multipe file fields, as an array and them process them

eg

<form type='file' name='file[]'>
<form type='file' name='file[]'>
<form type='file' name='file[]'>
<form type='file' name='file[]'>


then using php to process them

$file = $_FILES['file'];

for($i = 0; $i < sizeof($file); $i++)
{

if($file['error'] == 0) //if a file was uploaded in this field
{
//processing data here
}

}

Reply With Quote
  #3  
Old April 5th, 2003, 09:08 AM
pr0t0ss pr0t0ss is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 3 pr0t0ss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thatīs exactly what I meant by "adding n entries" and not a certain number of files. Think of following example.
Image Gallery, one user with authorisation wants to add new pictures he made the day before. There are 200+ pictures.

Normally he would upload them first on my/our server and then he could activate my script to transform them (in which way ever, not important for my example).

Iīm searching for access to a local client, and I know thatīs not possible with php, but maybe we could think of other possibilities.
Everyone heard of a ActiveX Script or something else that could access local client data??

But there must be a easy way of uploading multiple (or n) files throug a webbased form without using a ftp-program.
Think of that case: You send a email with that 200+ pictures mentioned to the system and grab them automatically by a script that would be the same (Ok, Iīve to admit itīs a different protocol but who matters??).

Why is it not possible to specify in a form a folder or directory and I can access this local folder and take each element like the dir() but in this case for local files....

Any ideas, suggestions, comments??

Reply With Quote
  #4  
Old June 30th, 2008, 12:13 PM
brontosaur brontosaur is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 1 brontosaur User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 14 sec
Reputation Power: 0
new flash uploader

i don't know if anyone is interested by these new flash products but make a try at
flashuploaded dot com
there are nice flash upload components to integrate easily in a website with a upload progress bar time remaining, file/folder manager etc... i tried it and works very well.

thanks

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Multiple file upload php


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