• Resolved quadcore

    (@quadcore)


    Ciao ragazzi, ho la necessitò di allegare file con estensione: .STEP e .STL manonostante li abbia aggiunti, al momento dell’invio il modulo mi dice:”Errore durante il salvataggio del modulo. L’estensione del file caricato non è consentita”. Mi aiutate per favore?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @quadcore

    I hope you’re well today!

    Please make sure that they are added in Forminator settings in both upper- and lowercase, so both

    .STEP and .STL

    and

    .step and .stl

    If this doesn’t help, it’s very likely that you may also need to either change site’s or server configuration. Theoretically, Forminator should be able to deal with it and override such limits but if it doesn’t, try adding this code to the site:

    <?php 
    
    add_filter( 'upload_mimes', 'upload_allow_types' );
    function upload_allow_types( $mimes ) {
    	// allow new types
    	$mimes['step']  = 'application/STEP';
    	$mimes['stl'] = 'application/sla';
    
    	return $mimes;
    }

    To add it to site:

    – create an empty file with a .php extension (e.g. “custom-allow-filetypes.php”)
    – copy and paste code into it and save the file
    – upload the file (via FTP, cPanel “File Manager” or similar tool) to “/wp-content/mu-plugins” folder of the site

    Then clear all cache and check if files can be uploaded.

    Kind regards,
    Adam

    Thread Starter quadcore

    (@quadcore)

    Thanks the additional code worked. But it only works if I put single file, if I use multiple files setting, no

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @quadcore !

    Can you clarify what you mean by “multiple files setting” in this case?

    Best regards,
    Pawel

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @quadcore ,

    We haven’t heard from you for some time now, so it looks like you don’t have any more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Allegare file con estensioni aggiuntive’ is closed to new replies.