• Resolved amentis1969

    (@amentis1969)


    Hi, on a clients website it has to be possible to upload .stl files. I’m using WordPress 4.8.1, Caldera Forms 1.5.5 and the theme is Avada 5.2.1

    I put the following code into the themes function.php:

    function my_upload_mimes() {
    $mime_types = array(
    ’stl‘ => ‚application/octet-stream‘,
    );
    return $mime_types;
    }
    add_filter( ‚upload_mimes‘, ‚my_upload_mimes‘ );

    I also customized the php.ini on the server and added the additional mime type I need.

    Now I can upload .stl files in the media library in the backend, but not with my Caldera form: I’m always getting the following error: “This file type is not allowed. Please try another.”

    The form ist correct configured, .stl files are allowed. I also tried any and all of the mime type plugins and last but not least I tried it with putting the snippet „define (‘ALLOW_UNFILTERED_UPLOADS’, true);“ in my wp-config.php – but unfortunately nothing worked.

    Could you please give me advice how to solve this issue?

    Thanks a lot!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Josh Pollock

    (@shelob9)

    Thank you for using Caldera Forms – we really appreciate it. I’m sorry you’re experiencing troubles.

    This is a site-specific bug and we would need more information from you or to use Caldera Forms Pro to find the error. We can do that, if you should open a support ticket at calderaforms.com/support.

    Just a note: Caldera Forms is free and always will be for you and other users downloading products from WordPress.org. However, for technical support from our team we do ask that you upgrade to Caldera Forms Pro, which includes Priority Support with an 8 operating hour turnaround. You can browse Caldera Forms Pro plans here: https://calderaforms.com/pro/.

    I appreciate your patience. We’ll look out for your ticket in support, and get you back up and running again ASAP.

    Thread Starter amentis1969

    (@amentis1969)

    I resolved the issue by using Contact Form7 instead of Caldera Forms, now the upload of .stl files works perfectly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘uploading a specific file type not possible’ is closed to new replies.