Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

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/' => array('xls', 'XLS'), 'application/' => 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') );


  • 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
  • @ Minisweeper Thank you, its simply too simple to come on this solution! Greetings
This discussion has been closed.