• Resolved dinozzo85

    (@dinozzo85)


    Hi

    Should the file upload really work in a repeatable section? Please tell me how

    I am phasing the following issues:

    [repeater rep-1 min:1 max:4 "Add another file"]
    <label> Your File [file* your-file filetypes:pdf] </label>
    [/repeater]
    &nbsp;
    [submit]
    Demo
    2025-04-06 23:40:38

    Rep 1: {"count":1,"fields":["your-file"],"id":[233]}

    File:
    1. Mandatory: If I select a file and press the submit button I get the error “This is a mandatory field”.
    2. Not mandatory: If I select a file and press the submit button I do not get any error but also no details about the uploaded file (upload location, filename, etc. )

    What am I doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author add-ons.org

    (@addonsorg)

    Hello,

    We fixed it, can you update the plugin and check again? (required filed only pro version )

    Thank you so much

    Thread Starter dinozzo85

    (@dinozzo85)

    Hi

    I tried.

    With this configuration I am able to upload a file but the “Add more” button does not work and I cannot add multiple files. It also seems to me that the “your-file” tag name is not considered. In the entries I just see the key “file”.

    [repeater* repeater-830 title:'Test' button:'Add 
    more...' max:3 initial_rows:1]
    [file your-file filetypes:pdf limit:20mb]
    [/repeater]
    &nbsp;
    [submit]

    With the following configuration I am able to use the “Add more” button but the file upload does not work. It does not matter whether the file is defined as mandatory or not – same behavior.

    [repeater repeater-830 title:'Test' button:'Add 
    more...' max:3 initial_rows:1]
    [file* your-file filetypes:pdf limit:20mb]
    [/repeater]
    &nbsp;
    [submit]

    In my use case I want to upload at least one file and a description (type “text”). This should be repeatable up to 4 times. File and description are mandatory.

    [repeater repeater-830 title:'Test' button:'Add more...' max:4 initial_rows:1]
    [text* your-title minlength:3 maxlength:30]
    [file* your-file filetypes:pdf limit:20mb]
    [/repeater]
    &nbsp;
    [submit]

    How do I achieve this?

    Thx for your support.

    Plugin Author add-ons.org

    (@addonsorg)

    Hello,

    Can you a support ticket and we will help you check and fix it: https://add-ons.org/supports/

    Thank you so much

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Repeater for file upload’ is closed to new replies.