Support » Fixing WordPress » CSV not uploading

  • kparker2213

    (@kparker2213)


    as of 4:43. last evening we could upload CSV files fine, we use gravity forms. we have done no updates in our environments, as of today we get an error stating the file type is not allowed.

    any ideas??? we are NOT on 5.0.1 yet we are on 4.9.9

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 22 total)
  • c1110366

    (@c1110366)

    Same problem for us. It says something about security problems. Yesterday i was able to upload without any problems.

    pmuwppress

    (@pmuwppress)

    The same issue, on multiple WordPress sites. Woocommerce and non-Woocommerce sites. Sites updated to 4.9.9 so I think probably related to this update. Will do some testing with a restore and provide feedback.

    kparker2213

    (@kparker2213)

    thank you, in the mean time this plugin corrected our issue, its a temporary solution. install and activate it, no setting needed to be adjusted for me. it began to allow CSV….

    plugin

    pmuwppress

    (@pmuwppress)

    Thanks @kparker2213

    cromagrickman

    (@cromagrickman)

    I’m having the same issue. Disabling the MIME check is definitely an option but is a security risk so I’d like to avoid that. Before, you could use the “upload_mimes” filter to add MIME types that were previously not allowed, but that code doesn’t seem to be making any difference this time. Below code for reference (added to a functions.php file in my child theme):

    // Function to allow .csv uploads
    function drick_custom_upload_mimes($mimes = array()) {
    
    	// Add a key and value for the CSV file type
    	$mimes['csv'] = "text/csv";
    	return $mimes;
    }
    add_filter('upload_mimes', 'drick_custom_upload_mimes');

    **EDIT** I had “add_action” instead of “add_filter” but it still doesn’t work. Official code on wordpress.org: https://codex.wordpress.org/Plugin_API/Filter_Reference/upload_mimes

    kparker2213

    (@kparker2213)

    hmm interesting, I assume WordPress will push the “fix” for this asap but would be nice to know. So, do you all use the plugin to enable/disable automatic updates?? I have the bigger updates like WP 5.0.1 disabled as far as auto-updates, but minor updates must be turned on somewhere?? when I go to settings> there is no option for “automatic updates” and I think it may be only if you have the plugin.

    cdonner

    (@cdonner)

    Some problem with the Give plugin. Cannot import donations anymore.

    linuxhombr3

    (@linuxhombr3)

    Hi Everyone,


    Any resolutions to this?
    Is this widespread? What would be the best means to getting my files importing, which were importing just fine previously…

    All are CSV files daily imported with product SKUs, etc.

    Please advise WordPress Brethren!

    Kind Regards,
    LinuxHombr3

    kparker2213

    (@kparker2213)

    also wondering the same… when will WP push the update to fix this??

    cromagrickman

    (@cromagrickman)

    You can follow the progress of the patch here: https://core.trac.wordpress.org/ticket/45615

    kparker2213

    (@kparker2213)

    thank you

    pmuwppress

    (@pmuwppress)

    Does anyone know if the CSV Upload “fix” (MIME upload) will be included in the 5.0.2 release? And will there also be a fix release for the 4 Branch?

    When is the 5.0.2 release expected anywho?

    Here is a temp solution, team:
    https://gist.github.com/rmpel/e1e2452ca06ab621fe061e0fde7ae150

    • This reply was modified 10 months, 4 weeks ago by  linuxhombr3.

    we are still on 4.9.9 but they pushed the update that broke CSV uploads so I assume they’ll push the fix. What issues did you all experience with the 5.0.1 upgrade? We have a lot of customization’s

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘CSV not uploading’ is closed to new replies.