Reply to Renaming the extension of php to jpg

Renaming the extension of php to jpg  new!
by vandall, 15 years, 3 months ago
Hi!
Code:
$foo = new upload($_FILES['fileToUpload']);
$foo->allowed = array('image/jpg','image/png',
                      'image/gif','image/jpeg');
$foo->forbidden = array('application/*');
$foo->file_new_name_body = $filename;
$foo->image_convert = jpg;
$foo->image_resize          = true;
$foo->image_ratio_crop      = 'C';
$foo->image_x = 200;
$foo->image_y = 200;
$foo->Process('../img/users/200/');
Objective: To enable the user to upload a picture of a particular type.
If the script is "php", change the extension for example "JPG", he downloads.

How to get rid of this? thanksReply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important