Extension "Attachment" need Help (problem with filetype pdf)

edited February 2007 in Vanilla 1.0 Help
Hello, when i want to upload a pdf-file with the extension "attachment" then i will recive a errormessege ("You are not allowed to upload (Formelsammlung_BWL.PDF) the requested file type: application/x-application") Greetings PS: $Context->Configuration['ATTACHMENTS_ALLOWED_FILETYPES'] = array ( 'image/gif' => array('gif', 'GIF'), 'image/png' => array('png', 'PNG'), 'image/jpeg' => array('jpg', 'jpeg', 'JPG', 'JPEG'), 'image/pjpeg' => array('jpg', 'jpeg', 'JPG', 'JPEG'), 'application/pdf' => array('pdf', 'PDF'), 'application/x-pdf' => array('pdf', 'PDF'), 'application/msword' => array('doc', 'DOC', 'rtf', 'RTF'), 'application/zip' => array('zip', 'ZIP'), 'application/x-zip-compressed' => array('zip', 'ZIP'), 'application/octet-stream' => array('rar', 'RAR', 'doc', 'DOC', 'ods', 'ODS', 'odt', 'ODT', 'ttf', 'TTF'), 'application/vnd.ms-excel' => array('xls', 'XLS'), 'application/vnd.ms-powerpoint' => array('ppt', 'PPT', 'pps', 'PPS'), 'text/plain' => array('txt', 'TXT'), 'application/x-gzip' => array('gz', 'GZ', 'tar.gz', 'TAR.GZ'), 'application/download' => array('rar', 'RAR') );

Comments

  • Well based on the fact you found that array, lets try adding 'application/x-application' => array('pdf','PDF'), somewhere in there?
  • y2kbgy2kbg New
    edited February 2007
    nvrmnd
  • @ Minisweeper Thank you, its simply too simple to come on this solution! Greetings
This discussion has been closed.