Emiliano Boragina wrote:
Hello php fellows,
I have two codes to upload multiple files, works very well, but I cant
rename the files... really i dont know...
The code looks ok. Do you get an error message? If not, turn up
error_reporting and enable display_errors:
error_reporting(E_ALL);
Very simple...
Call you files being uplaoded file1, file2, fileX in the HTML form..
[html]
[/html]
Then process with code like this:
[code]
$STARTFILE = 1;
$ONFILE = "file" . $STARTFILE;
while (isset($HTTP_POST_FILES["$ONFILE"])) {
// Try!
$SrcPathFile = $HTTP_POST_FILES["$ONFILE"]
x27;s that!
You got options. Just a matter of how much time you wanna invest ;)
Aaron
> -Original Message-
> From: Chris Payne [mailto:[EMAIL PROTECTED]
> Sent: August 29, 2003 5:45 PM
> To: php
> Subject: Re: [PHP-DB] Upload multiple files?
>
> Hi there,
>
> Um
Hi there,
U you know what they say, keep it simple and you're probably right you
know, I was thinking it would be more complex but i'll have a play with that
idea (Isn't it amazing how sometime we try to make things harder for
ourselves than they need be?).
Thanks for pointing that solution o
Well...
Having never done this I would assume it's the same with and form field
you want to use as an array (multiple selections).
Create a few different fileselect fields all with the same name but
adding in [] to make it an array.
Then just loop through the array.. copying the file to the serv