• Hello,

    I have already tried manually allow the heic image format to be uploaded to my site by adding the the upload_mimes filter in WordPress.
    That only allowed me to upload these image types directly into the media library but I want to allow users to be able to upload these types of images from the front end, and I still got the ‘not allowed for security reasons’ error.

    So I tried your plugin and ticked the heic box in the settings, nothing changed. Then I tried ticked the two other options ‘to be used only if you are unable to upload files you have enabled by selecting their type’ and also skipping WordPress checks.
    But this lead to the following error: There was an problem while verifying your file.

    Any ideas what the problem might be?

    Thanks

    Jo

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author davide.airaghi

    (@davideairaghi)

    which version of WordPress are you using ?
    which version of PHP is enabled for your website by the hosting provider ?

    I am having the same problem. The plugin was working fine 2 days ago – but when it updated yesterday it no longer works. We are on WP 5.1.1, PHP 7.0.33

    • This reply was modified 5 years, 8 months ago by dtatem.

    I’ve done a bit more testing and here are the results:
    On one site I can load stl files directly to media area but not through a Gravity form: https://edtech.domains.trincoll.edu/3d-printing/3d-printing-competition-submission/
    With the standard single file upload option I get the error: “The uploaded file type is not allowed” when using the multiple file uploaded I get the error “there was a problem verifying your file”
    On another site It works both ways: https://dtatem.domains.trincoll.edu/wp/file-upload-test/
    I cannot load an obj file at either site.

    I’m having the same problem with Gravity Forms. Can upload to the WP media library, but get a “file not supported” error when uploading through the form.

    Im using WP v 5.1.1 & PHP v 7.1

    Plugin Author davide.airaghi

    (@davideairaghi)

    i asked GravityForms team to have a look at plugins’ integration and let me (us) know if there is something to be fixed on “both sides”

    Yes again love a fix on this please update anyone.

    Would love an update on this as well. We ended up having to state on our file upload that we can only support PDF files – our audience is engineers working in CAD programs so we’re making them do extra work to send us their files for review.

    Plugin Author davide.airaghi

    (@davideairaghi)

    i finally got some answer by Gravity Forms team:

    We have not made any changes to upload validation. I would only assume that the customer did not have the plugin configured correctly. Anyone we have recommended the plugin to has reported that it resolved their issue. Thank you.

    Had the same issue in the following environment when trying to permit a JSON file upload:
    – WordPress 5.2.2
    – WP Extra File Types 0.4.3
    — Check only file extensions: checked
    — JavaScript Object Notation (JSON): checked
    – Gravity Forms 2.4.10.9
    — File Upload field: Allowed file extensions: json

    I believe this is a fault with Gravity Forms, specifically gravityforms/common.php:3515, which will return an error if wp_check_filetype_and_ext() (i.e. WordPress) IS able to determine a proper filename:

    View post on imgur.com

    The logic here does not make sense; it should only return an error if WordPress IS NOT able to determine a proper filename.

    Changing the logic in Gravity Forms code to only return an error if the filename could NOT be determined resolves.

    Therefore, I’ve raised this with Gravity Forms as a potential bug and will update here when I receive a response from Gravity Forms.

    • This reply was modified 5 years, 4 months ago by wpzinc. Reason: Clarity

    Any news on this? We’re having this issue also. Thanks

    I chased the same issue tonight so sharing what I found in hopes it helps others.

    Contrary to the documentation, Gravity Forms does not simply follow the WordPress allowed mime types. If you look at the plugin code, you find that in common.php there is a routine called get_disallowed_file_extensions() which returns a list of 25 file extensions that Gravity Forms does not allow, along with a filter you can use to override that. For example, if you want to override their list with your own, you might add something like this to your functions.php file:

    function my_disallowed_file_extensions( $extensions ) {
    $extensions = array(
    ‘php’,
    ‘asp’,
    ‘htaccess’,
    );
    return $extensions;
    }
    add_filter(‘gform_disallowed_file_extensions’,’my_disallowed_file_extensions’);

    Plugin Author davide.airaghi

    (@davideairaghi)

    released plugin version 0.4.4.1 with new code based on @educationservices suggestion

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘There was a problem while verifying your file.’ is closed to new replies.