Thanks to this thread here, I found this code
function fix_wp_csv_mime_bug( $data, $file, $filename, $mimes ) {
$wp_filetype = wp_check_filetype( $filename, $mimes );
$ext = $wp_filetype['ext'];
$type = $wp_filetype['type'];
$proper_filename = $data['proper_filename'];
return compact( 'ext', 'type', 'proper_filename' );
}
add_filter( 'wp_check_filetype_and_ext', 'fix_wp_csv_mime_bug', 10, 4 );
which does allow the files to be uploaded through the form.
Not sure what I am opening myself up to, but it works for now.
Related Posts:
- Upload Multiple Files With media_handle_upload
- How to get the image EXIF date/time and use it for the WP post date/time
- How can I get $id variable in widget’s form function?
- Refresh page after form action
- contactform7 remove tags with “wpcf7_autop false” from functions.php
- Add new user : make the fields First Name and Last name required
- delete uploaded file
- How to call WordPress functions from a form processing script
- what is the meaning of settings_fields()
- How to save Uploaded image in custom option panel?
- Max file size not updating
- update_post_meta for custom field not working upon form submission
- Allowing SVG uploads in media uploader without plug-in
- Custom image size in Media Dropdown
- WordPress registration and contact form 7 [closed]
- Images uploaded using media uploader are appearing upside down
- How can I enable uploading excel files?
- Gravity Forms – Using a Form to Pre-populate A Gravity Form [closed]
- Ninja form Redirect depending on text field content [closed]
- Can I hide certain upload folders in media library [duplicate]
- Ajax not working properly
- Having a Function Inside of the Loop
- Disable auto-resizing of uploaded images, but only for certain filename
- When sale price is 0.00 show only regular price
- Removing custom meta data
- Can’t generate thumbnail images
- Is There Any Built In WP Functionality For Combining Form Fields To Return Specific Data
- wp_nonce_field is breaking form for reasons unknown
- How to stop media_sideload_image from running when deleting a post?
- Possible to hook into Media Library preview File column and use a custom image?
- Contact Form 7 If Condition
- How to properly refresh page after form action?
- Init action and refresh page after form action
- Function that prevents users from uploading photos more photos
- dynamic enquiry form [closed]
- This code is supposed to only allow user to be authenticated if accountVerified is equal to 1, but it still allows user to be authenticated otherwise
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- How to add HTML into error message
- Problems adding a new field to product in cart
- Postback redirect through add_action is not triggered
- Button click counter for login user
- How to change form action of wp-login page with a function
- WordPress Ajaxifying not working properly
- Serving cache from multiple domain names
- restrict uploaded image size and fixed image display size
- Function image_send_to_editor returns emty title tag
- Zip all (original) images from media gallery
- Sending Messages Back to the Template After Processing?
- us states dropdown function and echo in theme template files
- Adding custom field in menu options [duplicate]
- Figure inlined width trigger distorted layout
- wp_upload_bits – define (sub)folder / (sub)directory before filename?
- Gravity Forms After Submission – GFFormsModel::update_lead_field_value?
- Will my WordPress site become vulnerable after adding this functions which allows more HTML tags for subscribers?
- Rename file after title , one small problem
- Help finishing script to export WP user data when form submitted
- Directing to functions.php the correct way
- WordPress Custom wp mail template return full template
- When the WP_EDITOR button is pressed, the user is prompted to select a photo from their device
- Get all users from role and add to dropdown (select) – wordpress, javascript
- Can’t find function which is called in a wordpress theme
- How to overwrite image if it already exists – WordPress, Gravity form
- Convert Image to Webp on upload without plugin
- CF7 Remove Comma from ‘select’ ‘radio’ and ‘checkbox’ outouts
- Redeclare a function in a child theme
- How to add first name & last name to default registration form?
- Masking logout URL
- How can I programmatically create “child” pages on theme activation?
- How to include one class/instance without using global variables
- Modify search function in WordPress (TwentyTwelve)
- Replace Archive Widget Link Text
- How to include local menu based on page id?
- How to add custom fields to my custom registration form
- Conditional read more adjustment
- Assigning WP functions which echo to PHP variables
- Calling a Function in Functions.php from an external PHP script
- Add custom function to a theme with child theme’s functions.php
- Function to alphabetically sort custom post types creating duplicates
- get_post_meta() problem again
- Update users custom profile fields
- Variables not showing in short code
- Add back in child theme what the parent theme removed with remove_action
- replace text in Sort Box
- What is the better for call files: bloginfo() or echo esc_url()?
- WordPress website keeps loading the maintenance page
- loginout function customization
- Dashboard blocker on network multisite for specific user roles
- How to upload large media file in chunks, without any plugin?
- How to change images url in function.php?
- Probleme shortcode with list author
- Stylesheet does not load despite functions.php
- How to show only specific category post by user role without plugin and restrict all other cats
- Unable to declare AOS library in functions
- Removing sanitize_title_with_dashes Function with The Real Title
- Graphic before title – Specific Category
- Printing medium sized image
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- Making an under maintenance page (without using plugins)
- Image width issue in IE [closed]
- How do i set global variable in a function in wordpress functions.php