Re: uploading files

From: Date: Fri, 16 Feb 2001 01:08:46 +0000
Subject: Re: uploading files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40043@lists.php.net to get a copy of this message
> Can you get php to upload an image if you have the direct location of the > file (ie. c:\bar\foo\bar\foobar.jpg), but the only thing is that I am not No. Where the file lives on the user's computer is irrelevant, and you can't just go snagging it. If you could, you could go snagging all their data, and they probably woudn't like that... > getting this from a form file input with the ENCTYPE of the form set to > "multipart/form-data". > I am getting the location from a string that is open > from a file. What?... Are you maybe getting the name of the temp file where it's been stored on your server? Use the http://php.net/copy function or that new-fangled copy_uploaded_file or whatever it is. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#40043) next »