• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Implemented Options: Allowed comment attachment file extensions & Maximum comment attachment file size (KB)

nicodak

Member
AMS Premium
CAS Premium
LD Premium
SC Premium
UBS Premium
Pick'em
Sportsbook
Hello,

I can't add PDF file to article's comment.
How to add new authorised file ?

PDF are already authorised in XF threads and replies.
Thanks.
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
AMS Comments are limited to image attachments only (its been this way for 11 years now).

XFRM also has IMAGE only limitations. Neither base their attachments off of Threads and options for threads (they have their own options and behaviors).

XFMG doesn't even implement an attachment handler for comments.

You'd have to extend the Attachment Handler for AMS Comments and override the image only limitations. Its not something that can be done via templates (just so you don't waste time trying ;) ).

Note: If you are good with file edits, start a conversation with me and I can walk you through it (very easy skill level 1 edit)

You are more than welcome to post a suggestion(I've moved this into the suggestions forum) Its only been this way for 11 years now, so maybe its time for a change :)
 
Last edited:
I can wait. Thank you.
 
I've added 2 new options pertaining to AMS Comment Attachments.

The first option allows you to control the max file size (KB) pertaining to comment attachments. Default value for this is set to 2048 KB.

The 2nd option allows you to control with file extensions are allowed. Default values for this are the five image extensions as shown below

Selection_919.png


Here you can see that by adding the extension 'pdf' to the option "Allow comment attachment file extensions", I am allowed to upload a pdf file to an AMS comment (attachment displays use core XF macros, the same macros that posts use).

Selection_920.png
 
Back
Top