• Dear Matt,

    thanks for this amazing plugin.
    Due to its outstanding versatility and reliability CFS has become one of my favorite companions over the last years.

    In one of my recent web projects I’ve used the file upload field for post related file attachments such as pdfs, doc etc.
    I’ve noticed using the cfs upload button my media library modal only displayed image files – regardless of the defined file type of my cfs field configuration (Any, Image, Audio, Video ).

    In my “file.php” I found the corresponding filter. After commenting these lines out I saw all file types in my library.

    file.php, line 139-141

      library: {
                                type: 'image'
      }

    The perfect solution would be a filtering according to the selected file type (Any, Image, Audio, Video ).

    But honestly I don’t think you need any filtering at all, as the upload fields returns an ID or URL and not a complete media element.
    Furthermore the standard wordpress media library view offers a pretty decent way to display only certain files.

    Maybe you could consider to adjust this filter in next versions?

    Best regards,

  • The topic ‘File upload field shows only image files in library’ is closed to new replies.