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?
- Dynamically creating charts of each row in an HTML table with chart.js
- How do you reverse a string in-place in JavaScript?
- Uncaught TypeError: Cannot read property ‘length’ of undefined
- Python to JavaScript converter
- Set style using pure JavaScript
- AJAX response error: net::ERR_EMPTY_RESPONSE
- TypeError: Cannot Set property ‘onclick’ of null
- Sorting strings in descending order in Javascript (Most efficiently)?
- Mismatched anonymous define() module
- Function is not defined – Uncaught ReferenceError
- How do I include a JavaScript file in another JavaScript file?
- Textarea Auto height
- Angular 2 – Using ‘this’ inside setTimeout
- Download data URL file
- Why use Redux over Facebook Flux?
- What language is JavaScript written in?
- How to output numbers with leading zeros in JavaScript?
- Remove not alphanumeric characters from string
- Detect a finger swipe through JavaScript on the iPhone and Android
- JAX post error : Refused to set unsafe header “Connection”
- How to use onBlur event on Angular2?
- img onclick call to JavaScript function
- Bootstrap Collapse not Collapsing
- How to scroll to top of page with JavaScript/jQuery?
- Check if a JavaScript string is a URL
- Submit form without reloading page [duplicate]
- “React.Children.only expected to receive a single React element child” error when putting
and in a - How to use Head JS with all enqueued scripts?
- Customizer JS API: Adding Setting Dynamically Not Working
- Handle lots of images within the media uploader / selector
- Category checkboxes in upload modal
- Customizer JS API: Adding a “dropdown-pages” control
- Attach media to multiple posts
- What is the “proper” way to generate a javascript variable depending on a custom field value?
- Adding nonce or hashes to inline scripts
- Suggested image dimensions Gutenberg Hook
- How to retrieve data from database, then pass it to Javascript?
- Add script to page at certain location in wordpress
- Absolutely print script in footer
- Make inline uploader (plupload) on options page upload to a specific folder
- Redirect to homepage if attmpting to leave intranet [closed]
- Why does my media selection script write to ONLY the first input field?
- Twenty seventeen theme dropdown menu issue
- Unserialize WP_Options options programatically?
- javascript errors on mobile browser, not on desktop
- Astra Mobile Cart Drawer is blank on home page