Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

FileUpload Addon allowed file types*

edited February 2011 in Vanilla 2.0 - 2.8
Where do I set the allowed file types?
No settings and I quickly scanned code but did not see an obvious config file.
I was unable to upload a PDF.

Comments

  • TimTim Operations Vanilla Staff
    $Configuration['Garden']['Upload']['AllowedFileExtensions'] = array('txt','jpg','gif','png','bmp','zip','gz','tar.gz','tgz','psd','ai','fla','swf','pdf','doc','xls','ppt','docx','xlsx','log');

    its in config-defaults.php

    you can override it in config.php

    I noticed that you're right: its missing PDF. 2.0.7 will allow pdfs by default.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • ah, thought it have been in the plugin's code.
    thanks.
  • success uploading any file wroten on config.php but when i upload a rar file wich i wroten on config.php the attachment is not shown
  • thanks for that @Tim!
Sign In or Register to comment.