Help!
We are using Darren Beale's standard script with the following parameters :
$my_max_file_size = "10485760"; # The maximum file size in bytes, currently approx. 10mb.
$image_max_width = "33000000"; # If the file submitted is an image, maximum res. width.
$image_max_height = "33000000"; # If the file submitted is an image, maximum res. height
$the_path = "/home/mcvd/public_html/user_images"; # Which directory the images are uploaded to.
$registered_types = array( # This is were we define common file types and their extensions.
"application/x-gzip-compressed" => ".tar.gz, .tgz",
"application/x-zip-compressed" => ".zip",
"application/x-tar" => ".tar",
"text/plain" => ".html, .php, .txt, .inc (etc)",
"image/bmp" => ".bmp, .ico",
"image/gif" => ".gif",
"image/pjpeg" => ".jpg, .jpeg",
"image/jpeg" => ".jpg, .jpeg",
"application/pdf" => ".pdf",
"image/x-eps" => ".eps",
"image/cdr" => ".cdr",
"application/x-shockwave-flash" => ".swf",
"application/msword" => ".doc",
"application/vnd.ms-excel" => ".xls",
"application/octet-stream" => ".exe, .fla (etc)"
);
This is where we say which of the above people are allowed to send us.
$allowed_types = array("image/pjpeg","image/jpeg","application/x-zip-compressed","application/pdf","image/x-eps");
It all works brilliantly for all file types listed except when the uploaded files exceed 2meg. in size. At that pint we get the message :
"There was an error, check that the file you're uploading exists."
Any ideas as to how to get over this problem would be greatly appreciated.
Thanks.
Regards,
Peter