• Hi support,
    I’ve implemented multiline file like this:
    [multilinefile infas-upl limit:3mb filetypes:pdf|doc|docx|txt|rtf|odt id:infas-upl class:infas-upl “Anlage hinzufügen”]

    Unfortunately the filetype restriction does not work.

    When using simple CF7 [file] the restriction works.

    Could you please give me a hint?

    thanks in advance, Torsten

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Divyesh_kakrecha

    (@divyeshk71)

    Hi @think238

    We are looking into it. We will get back to you asap with possible solutions.

    Thank you.

    Thread Starter think238

    (@think238)

    Hello divyeshk71,
    thanks for your answer! Does the plugin generally support file restrictions and error messages? I would also buy the pro version if it works for me.

    greet torsten

    Plugin Author Divyesh_kakrecha

    (@divyeshk71)

    Hi @think238

    Yes, the basic file restriction is also available in the free version but we are facing issues with file restriction in both version, we will be updating really soon.

    Thank you.

    Plugin Author Divyesh_kakrecha

    (@divyeshk71)

    Hello @think238

    We have released the new version 2.1. We have fixed all file type restriction errors. Kindly update your plugin with the latest version and test your issue.

    Please feel free for any help. Thank you. I appreciate your patience.

    I just installed version 2.2, and filetype restriction still doesn’t work.

    Plugin Author Divyesh_kakrecha

    (@divyeshk71)

    Hello @marusic

    Could you please provide the page link So we can check the error?

    Thanks.

    Sorry, it’s in development, so it’s only on my localhost, but there is no error thrown, either php or js, it just allows all files all the time.

    This is the shortcode:

    [multilinefile evidencefiles limit:131072 filetypes:pdf|docx “Select file”]

    But I can add anything:

    https://backslashcoding.com/issues/multifile.png

    Any ideas?

    Until this is fixed, if anyone needs fast solution – I just hardcoded it:

    inside span.mfcf7-zl-multiline-sample there is input[type=”file”] which is missing “accept” attribute. So just add it using js or php. I added it in php, and everything works fine (also fixed form’s <lable> tag while I’m at it ?? :

    <?php 
        
        ob_start(); 
        echo do_shortcode('[contact-form-7 id="567"]'); 
        $cof = ob_get_clean();
    
        $cof = str_replace('<input type="file" name="evidencefiles[]"','<input type="file" accept=".pdf,.doc,.docx" name="evidencefiles[]"',$cof);
    
        $cof = str_replace('<lable>','<label>',$cof);
        $cof = str_replace('</lable>','</label>',$cof);
    
        echo $cof;
    
    ?>
    Plugin Author Divyesh_kakrecha

    (@divyeshk71)

    @marusic

    Thank you for your instant solutions.

    But have you checked the file restriction after clicking on submit button?

    Please let me know. Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘file-type restriction’ is closed to new replies.