I’m assuming this isn’t a bug, just a lack of adequate documentation, so....

Where is the documentation on how to add an extension (file type) to the ‘Add file’ page and to the WYSIWIG Media browser “Upload a new file” tab?

This is what I attempted:

Home » Administration » Structure » File types
/admin/structure/file-types

Click => Document, edit file type
Copy/Paste ‘application/zip’ from “Show Mimetype List” to “Mimetypes”
Click => Save

Home » Administration » Configuration » Media » Media browser settings
/admin/config/media/browser

Verify “Document” is checked in “Allowed types in WYSIWYG”

Clear cache twice
drush cc all && drush cc all

On both the ‘/file/add’ page and in WYSIWIG using Media browser this Results in:

The specified file wild card.zip could not be uploaded. Only files with the following extensions are allowed: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pptx pps ppsx odt ods odp mp3 mov mp4 m4a m4v mpeg avi ogg oga ogv weba webp webm exe.

Note: the allowed extensions do not change.

Comments

Michael-IDA’s picture

Michael-IDA created an issue.

Okay, this is a bug?

#2134775-17: Allowing new file extensions other than the default attachment types e.g. zip, eps, etc.

Why the double work?

PS: Move this to the correct Media queue please.

anthonyroundtree’s picture

I'm not sure if zip files qualify as documents. Try adding a new file type under admin/structure/file-types/add and give it a mime type of application/zip. Not sure what you are trying to accomplish, but if you want it added to the media browser, add it to the list of allowable file extensions in the File settings => admin/config/media/file-settings.

joseph.olstad’s picture

Issue summary: View changes

yes see comment #2
does that help?

joseph.olstad’s picture

Issue summary: View changes
chris matthews’s picture

Version: 7.x-2.13 » 7.x-2.x-dev
Status: Active » Closed (outdated)

Recent versions of media have resolved most of peoples concerns and is compatible with entity translation, multilingual and various advanced configurations. Due to the high volume of inactive and most often irrelevant issues we are Closing this as (outdated). If for whatever reason this issue is important to you AND you still have issues after checking the media recipe documentation, then let us know and we will review your concerns.

Otherwise, see the recipe documentation for how to configure media and for troubleshooting tips OR refer to the media_dev distribution if you want to see a working media setup.

As mentioned, feel free to make some noise in this issue if you still feel it is important to you or someone else.

Thanks,

Media team