WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Audio.jpg and Video.jpg Function (2 posts)

  1. Ryan Fitzer
    Member
    Posted 7 years ago #

    Anyone have any idea where there's documentation on what other icons the inline-uploader supports when inserting files other than images. Trying to figure out if it can recognize .pdf and .doc. I'd like to have the option to insert an icon for both these file types similar to how .mp3 and .mov are handled.

  2. Ryan Fitzer
    Member
    Posted 7 years ago #

    Did some digging in trac an found this old page http://trac.wordpress.org/attachment/ticket/2074/attachment-attack.diff

    This says that you can also add these images to you're theme's image folder:

    application.jpg to be used as an icon for the following file extensions:
    rtf
    js
    pdf
    doc
    pot
    pps
    ppt
    wri
    xla
    xls
    xlt
    xlw
    mdb
    mpp
    swf
    class
    tar
    zip
    gz
    gzip
    exe

    text.jpg to be used as an icon for the following file extensions:
    txt
    c
    cc
    h
    php
    rtx
    css
    htm
    html

    These are quite the catch-alls and it would be nice to see them further categorized but I least now I know.

Topic Closed

This topic has been closed to new replies.

About this Topic