Re: Upload function
| From: | Johann Evans | Date: | Thu, 24 Aug 2000 09:16:43 +0000 |
| Subject: | Re: Upload function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13338@lists.php.net to get a copy of this message | ||
If you check for a '.' then you must check
for last '.' in the filename!
----- Original Message -----
From: "Maxim Maletsky" <maxim.maletsky@lincmedia.co.jp>
To: "'Florian St|hrk'" <florian.stuehrk@cultur-e.de>
Cc: "PHP General List. (E-mail)" <php-general@lists.php.net>
Sent: Thursday, August 24, 2000 11:07 AM
Subject: RE: [PHP] Upload function
> 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
>
> --
> 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
>