Skip to content

posting multiple files works, posting only one file does not #354

Closed
@adampaulukanis

Description

@adampaulukanis

Hello. I am a beginner. Please be polite ;-)

var form = new formidable.IncomingForm();
form.multiples = true;

I expect this >> files.upload << in form.parse to work, and it does, when I try to upload more than one file at a time. Unfortunatly it does not work, if I have chosen only one file.

Could someone help me with this?

I work around this by checking if this is an array, if not, copy one file, else if an array, use loop to do that.

Thank you very much in advance.

Have a good day all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions