File upload addon has been working file, have uploaded lots of images and spreadsheets, but I guess until now I never tried a PDF. Now that I have I see that it isn't working.
I had the following set for uploadTypes in addon_fileupload_options.php:
$uploadTypes=array( 'image/jpeg'=>128000, 'image/pjpeg'=>128000, 'image/gif'=>128000, 'image/x-png'=>128000, 'image/png'=>128000, 'application/pdf'=>256000 //'image/bmp'=>102400, //'image/tiff'=>307200, //'text/plain'=>102400, //'application/octet-stream'=>102400, //'application/vnd.ms-excel'=>102400, //'application/msword'=>102400, //'audio/mpeg'=>102400, //'application/x-zip-compressed'=>102400, //'application/zip'=>102400, //'video/x-ms-wmv'=>2048000, //'video/quicktime'=>2048000, //'video/mpeg'=>2048000, //'video/avi'=>2048000, //'application/x-shockwave-flash'=>102400 );
Error was always the same:
File(s) were not uploaded, possible reasons: File size is too big File type is not allowed: application/download
Why does the upload addon think a .pdf file is a mime type application/download?
I added the following line to addon_fileupload_options.php: 'application/download'=>256000
and now it works.
However the way the files are shown in the forum is a little sloppy, see it here:
www dot pawinetalk dot com /talk/12_577_1.html
Any info would be appreciated.
Thanks Mark |