Sounds like you need something like:
add_filter('upload_mimes', function ( $mimes = array() )
{
$mimes['mobi'] = 'application/x-mobipocket-ebook';
$mimes['epub'] = 'application/epub+zip';
return $mimes;
} );
to support the uploads, but you might have to adjust the mime types to your needs.
Related Posts:
- How to Protect Uploads, if User is not Logged In?
- Add a menu item to WordPress 3.5 Media Manager
- Delete an attachment in the WP media modal window
- Media library to list images only user uploaded
- Rendering the uploaded file in a wp.media object
- How do I force WordPress to show most recent version of images in the media library?
- WordPress Media Manager 3.5 – default link to
- Proper way to add a button to the top menu of the media library?
- display image size in media library screen
- How to capture the selection:toggle event fired by wp.media
- Changing the media library default tab
- Best plugin to manage media library? [closed]
- Change default tab of media manager
- Restricting access to files within a specific folder [duplicate]
- get total number of images from media using xml-rpc
- Audio Playlist : How to bind events for “track change”, “track end”?
- Images are registered in media library but still won’t show up
- How do I control video media display sizing with native wordpress player
- Handle lots of images within the media uploader / selector
- Rest API rename media
- Custom media picker in meta box: how to select available image sizes?
- WordPress 3.0 Media Upload Directory
- Can’t edit media details in new role
- 3.5 Media Manager – callout in metaboxes
- How to bulk Edit Dates in Media Library?
- Add instructions For Media Library Uploads
- Audio file’s length (duration) is missing from Attachment Details in Media Library [closed]
- Media Manager: refresh library after new selection
- Cannot upload anything via wordpress
- Video uploaded with the native media uploader gives Error 404
- Overriding of the template for the Attachment “thumbnails” in the Media Grid isn’t working
- Importing Media IDs but not related attachment
- Allow Editor Role to Edit Media
- Bulk image importing from folders
- Creating subfolders in the media library
- how to upload file to media library using link [closed]
- Media Library empty after server move (exact copy of files and db’s)
- Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?
- Media Library not showing images but still acknowledges existence
- Too slow Image upload in WordPress Media Library as image number increases
- Remove delete-attachment button for every media
- How to disable Media Library?
- How to disable (and hide) the Media Library for certain users?
- Attaching images to multiple galleries
- How to re-house images in uploads/YYYY/MM
- Publish / unpublish media items in the media library
- Media Library modal customization
- How to Protect Uploads, if User is not Logged In?
- Creating multiple instances of Media Uploader
- Handle image file and save it to media
- Insert Link to Audio versus Embed Audio Player
- Can we reuse WordPress drag drop media upload in plugins?
- Change default ‘file not supported’ error message
- How to create different media uploader frames / filter library depending on a custom action
- Import of 200+ sermons
- Pictures won’t display in media library and also won’t show preview when selected
- How to batch-add image file extension without losing DB refs?
- Add link to media files in backend and modify linked images in the frontend
- Looking for a way to insert PDF image preview in TinyMCE
- Extend Media Library
- Remove “Insert from URL” link in Media upload – WP 3.5
- Password protect some uploaded files, so only logged-in users can view them
- Unattaching unlinked images
- How to display all images “Uploaded By” an author
- Is it possible to generate JPEG progressive thumbnails?
- How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page
- FTP files directly to Media Library wp-content\uploads
- Get url from file uploaded in Media Library
- Add select field to media uploader that adds a class to the image
- Organizing media uploads
- Front end wp_editor not rendering audio/video links
- How to fetch only media that was already attached to a post/page?
- Rotating image does not work for custom image sizes
- Rebuild the entire WordPress uploads folder
- How to hide some specific attachments using post meta from media library
- How to extend an existing (Gutenberg) block
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- How to open a Media Uploader dialog with a particular image is selected
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- How to run custom JavaScript code on gallery attachment image selection
- WordPress media upload issue could not insert attachment into the database
- Thumbnail images missing in WP media library
- What if I have a large file on the server that I want the wp library to have?
- Get all media from wp-json/wp/v2/media
- How to add HTML into error message
- IPTC and custom thumb size
- Disable Responsive Image Sizes crop
- Append Media/Attachment IDs to Gallery Shortcode HTML Output
- Export media library with metadata and import into new blog
- Media Library: Remove replace images of selected author
- MP4 file links download instead of playing
- Media and all images disappeared from my wordpress site
- How to upload multiple images using WP rest API to media?
- Get the Playlist embedded in Post/Page content
- How can I change the default image behavior?
- Import media in bulk with caption and titles?
- Organising and display thousands of photos in media library
- How can I add a Description column to the media library browser screen?
- show/hide attachments
- wordpress 3.6 media manager cropping timestamp