Hello,
I'm trying to create script that will let me upload files. One of the file types I'd like to upload is Adobe's PDF files, not sure how to add this filetype to my list of apporved file types.
Do I declare the app type of file type;
e.g.
$registered_types = array(
"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/x-shockwave-flash" => ".swf",
"application/msword" => ".doc",
"application/vnd.ms-excel" => ".xls",
"application/octet-stream" => ".exe, .fla (etc)"
option1 "application/adobereader" => ".pdf",
or
option2 "image.pdf" => ".pdf"
); #