Re: Multiple Upload using list

From: Date: Fri, 17 May 2002 07:45:24 +0000
Subject: Re: Multiple Upload using list
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98021@lists.php.net to get a copy of this message
On Friday 17 May 2002 14:30, Triax wrote: > Hello, > currently I want to implement a multiple upload using a listbox. > I have 2 link which will dynamically add or remove a file to/from the > list box, > --------------------------------------------------------- > Upon sbumitting, my php script can only read the local drive directory > instead of the > temporary directory on the server. > When I did a copy function, it tell me that it cant copy as the source > file does not exist. > Below is part of my php script. > --------------------------------------------------------- > if(!isset($WINDIR)) $filename = str_replace("\\\\", "\\", > $lstUpload[$i]); ..... > if(!copy($filename, > "/home/fotohub/public_html/memPhotos/$usrID/$img_name") ){ > echo "Failed to copy"; exit(); > } How are you getting the filename(s) (both temp and actual) of the uploaded file(s)? Did you not read/follow the example in the manual? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Immanuel Kant but Kubla Khan. */

« previous php.general (#98021) next »