Re: file upload problem

From: Date: Sat, 23 Aug 2003 19:16:16 +0000
Subject: Re: file upload problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160529@lists.php.net to get a copy of this message
when you are uploading files via a form, you must use the POST method. Jim Lucas ----- Original Message ----- From: "Matthias Wulkow" <elektrik@gmx.net> To: <php-general@lists.php.net> Sent: Saturday, August 23, 2003 11:16 AM Subject: [PHP] file upload problem > Hi , > > I try to upload a file with such an input type = 'file' field. > My form looks like: > > echo "<form action = '". $_SERVER["PHP_SELF"]."' method = > 'GET' enctype > = 'multipart/form-data'>\n"; > > ... > > echo "<td><input type = 'file' name = 'newtextupload' > accept='text/*'></td>\n"; > > ... > > echo "<td><input type = 'submit' name = 'submit' value = > '&auml;ndern'></td>\n"; > > echo "</form>\n"; > > After submition, I can't find the file on the server. Nowhere. > In php.ini, I have /tmp as upload-directory. > > I'm using apache2 on linux. > > Can somebody tell me why the file is not uploaded? > > Thx for answering > > SvT > > > -- > Who is the ennemy? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#160529) next »