Package 

Class AttachmentKt

    • Method Detail

      • getDisplayableName

         final static String getDisplayableName(Attachment $self)

        Generates a displayable name for the attachment. Builds the name using the following priority:

        • Title of the attachment

        • Name of the attachment

        • Name of the uploaded file

        Additionally, it removes any time prefix from the name.

      • isUploading

         final static Boolean isUploading(Attachment $self)

        Checks if the attachment is currently being uploaded to the server.

      • isFailed

         final static Boolean isFailed(Attachment $self)

        Checks if the attachment upload has failed.

      • hasLink

         final static Boolean hasLink(Attachment $self)

        Checks if the attachment is a link attachment.