Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Multiple IFormFile #1

Closed
badreddine-dlaila opened this issue May 3, 2020 · 3 comments
Closed

Support Multiple IFormFile #1

badreddine-dlaila opened this issue May 3, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@badreddine-dlaila
Copy link

badreddine-dlaila commented May 3, 2020

Hello,

Excellent job done with this library.
Is there any chance that you add support for multiple files upload ?

public class MyWrapper
    {
        [FromJson]
        public Product Product { get; set; }

        public IEnumerable<IFormFile> File { get; set; } // <-- That would be awesome if we could do this
    }

    public class Product
    {
        public string Name { get; set; }

        public ProductType Type { get; set; }
    }

    public enum ProductType
    {
        Phone,
        Laptop
    }

Actual behavior when doing as above :

image

@Morasiu
Copy link
Owner

Morasiu commented May 3, 2020

Thanks!

I'll check Open API specs and Swagger Docs specs and let you know!

@Morasiu Morasiu added the enhancement New feature or request label May 3, 2020
@Morasiu
Copy link
Owner

Morasiu commented May 3, 2020

I've done a little research and it's a problem with Swagger UI.

Here is related issue. Also here is an issue from Swashbuckle.AspNetCore.

@Morasiu
Copy link
Owner

Morasiu commented Oct 31, 2021

Solved in the new swagger version

@Morasiu Morasiu closed this as completed Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants