RE: [PHP] Upload function

From: Date: Thu, 24 Aug 2000 09:07:20 +0000
Subject: RE: [PHP] Upload function
Groups: php.general 
Request: Send a blank email to php-general+get-13336@lists.php.net to get a copy of this message
go to php.net there's a function to give you a file type, just write then if(theFunc_whichIdontRememberTheName($theFileUploaded) == ".gif") proceed(); else GetTheHeckOutHea(); just check it there... Otherwise you could just search for a dot (".") in the file name and then proceed only if whatever after that dot is corresponding to what you need.. -----Original Message----- From: Florian Stührk [mailto:florian.stuehrk@cultur-e.de] Sent: Thursday, August 24, 2000 5:58 PM To: php-general@lists.php.net Subject: [PHP] Upload function Hi, i tried to upload some images, using a html form and the php copy function. How can i prevent users form uploading other file types than gif and jpeg? Thanks, Florian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#13336) next »