Reply to Only jpg images

Only jpg images new!
by Fia, 13 years, 8 months ago
How do I get it to only accept jpg images?
I've tried:
$folder="../produkter"; 	
$handle = new Upload($_FILES['image']);
if ($handle->uploaded) {
  $handle->allowed 	 = array('image/jpg');
  $handle->file_new_name_body    = $bildnamn;
  $handle->file_overwrite	= true;
  $handle->file_auto_rename      = false; 
  $handle->image_resize          = true;
  $handle->image_ratio           = true;
  $handle->image_y               = 600;
  $handle->image_x               = 600;
  $handle->jpeg_quality		   = 95;
  $handle->Process($folder);

it worked fine before i put the allowed line in. ???Reply

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