The zip files are in a subtype called application
so you should try using:
type: 'application/zip'
A list of default allowed mime types is available from wp_get_mime_types.
Related Posts:
- Restrict file types in the uploader of a wp.media frame
- Custom “Uploads” Dir: “Edit Image” in Media Library broken
- How to retrieve a value from an input field in a media view template
- Uppload image from another source wp.media
- How to open the add media dialogue it in a certain state / tab?
- Insert HTML markup to page content from the Media Frame modal
- Enhance Media Manager for Gallery
- Trigger refresh for new media manager in 3.5
- Delete an attachment in the WP media modal window
- WordPress 3.5 Media Manager – add a button
- Rendering the uploaded file in a wp.media object
- Javascript WP Object Documentation?
- Show only images and videos in a wp.media window
- Open media frame and select an attachment
- Customizing the 3.5 “Add Media” popup (Backbone.js)
- Is it possible to trigger some JavaScript when Media Popup is opened?
- Refresh wp.media after ajax call
- Hook for image edit popup
- Switch to the library tab in the media uploader
- What type of template are WP media-modal’s templates?
- Modify Custom Field in Media Library using JavaScript
- WP3.5 Media Uploader – how to make it accept multiple images?
- How to extend Media Library (WP 4.4)
- Filter medias from the Media Uploader (wp.media) modal with a post meta
- Modify how gallery.js builds the shortcode [gallery ...] in tinyMCE?
- Upload images from custom plugin using the media modal
- What is “open()” in MediaUpload?
- Sending custom data with Media Frame Model
- WordPress 3.5 Media Manager – add a button
- Media Manager: refresh library after new selection
- Switch between tabs on “Insert Media” dialog
- window.send_to_editor throws unterminated string literal error when adding image with multi line description
- Display attachments by the ID of the post being edited in the wp.media frame (frontend)
- How to open default wp image editor screen dynamically?
- Search media with javascript
- Media library not working with wp_editor() on the front end
- Multiple media uploader buttons target only one input on the same page
- WordPress Media Library: Custom tab content displayed in “Media Library” tab
- Manually mark imported photo as selected in media library
- Modal working only on home page
- How to get the return value of wp.media({ frame: ‘post’ }) in all cases?
- Is there a media_upload_tabs-similar filter to add tabs to the simple/featured image picker?
- Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?
- Building a Featured Gallery component for Gutenberg
- Update media library attachments
- How to change the text of the “You are about to permanently delete these items…” alert message when deleting media from the media library?
- Open Media Uploader Link in single post or page
- Set a minimum and maximum limit of images to select in the MediaUpload component for Block
- How to locate the js code and php code for certain function?
- How to validate image with specific height and width selection in media selector
- Media Library modal customization
- How to create different media uploader frames / filter library depending on a custom action
- Custom Media Meta fields to alter the generated image HTML that is inserted into a post for my animated GIF image player?
- Is there any halfway decent documentation on the wp.media JS class?
- add_attachment hook not firing on certain devices
- How to change number field to text field using JS
- Organising and display thousands of photos in media library
- Enqueue concatinated JS file in WordPress
- wp_enqueue_scripts doesn’t work for template pages
- WordPress text widget with onclick function
- Create new product with woocommerce REST API with javascript (clientside)?
- Connecting a wordpress site to an AngularJS APP
- Can’t change javascript files
- WP Media Uploader modal conflicts with Bootstrap modal
- how to do open a link in a open window from menu bar? [closed]
- Combining results from WP-API using AngularJS
- Organizing the Media Library for Cleanup
- JavaScript and Google PageSpeed + wp_enqueue_script
- Javascript file doesn’t load
- Removing delete permanently button in uploading files media
- Script not working in post content
- JavaScript problem in a WordPress PAGE
- Get URL of current featured image with JS in edit post view
- How to identify which javascript is being executed
- Put dynamic Javascript in header after doing operations
- Hook into backbone to add js to wp-admin -> media library?
- Unserialize WP_Options options programatically?
- how to include js in widget?
- Issues with WordPress 3.9.6 media libraries on XAMPP
- early enqueueing javascript file in page template, not in functions.php
- Wysiwyg editor not working on 4.2.2
- Editing the source of a display for posts (to category recent)
- Dequeue set-post-thumbnail.min.js
- Edit image itself
- How to adjust the selector used in JS to target only the one that was clicked on?
- Insert media while posting is not working with new wordpress update
- WordPress 4.2 mce-views migration guide?
- Receive “menu-toogle” event from section menu in customizer
- Adding javascript blocks to a single file and adding it to the header
- None of the JavaScript works when using wp_editor
- How would I get this to work – send to post from thick box
- JS files landing on page but not working, using childtheme of twentyeleven
- WordPress 4.1 crashes loading of ArcGIS Javascript API
- jQuery + more won’t load in header
- How to get only current images of a post
- Import of 200+ sermons
- controlling whether upload is attached to post or not
- How to modify a class in load-scripts.js ?
- How to split my uploaded media into directories?
- Convert javascript running xml files to wordpress platform