Re: Re: FIle Upload problems

From: Date: Sat, 06 Mar 2004 03:31:54 +0000
Subject: Re: Re: FIle Upload problems
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-179624@lists.php.net to get a copy of this message
On Saturday 06 March 2004 10:42, Brian V Bonini wrote: > On Fri, 2004-03-05 at 21:33, Andre Cerqueira wrote: > > try echo'ing $_FILES['image_upload']['tmp_name'], and check if > > the path > > exists > > Gives me nothing, hmmm... If you had enable error reporting and checked what errors were reported you would probably have solved your problem already. > In the form if I trim off the local /PATH/to/file/ it returns successful > and created a 0 byte file where it should. Obviously not what ultimately > needs to happen but.... Am I supposed have to translate the local path > first of something? I don't see anywhere in your form where you have "/PATH/to/file/", what are you referring to? Also the following is obviously incorrect ... switch($_FILES['HTTP_POST_FILES']['userfile']['error']){ ... it should be ... switch($_FILES['userfile']['error']){ ... and you should have substituted 'userfile' with 'image_upload' as that is what you're using in your form. Do yourself a favour, study the example in the manual, get it working, understand how it works, THEN modify it in small incremental steps until it does what you want. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Live from New York ... It's Saturday Night! */

« previous php.general (#179624) next »