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

Multipart form? #55

Open
tshubham7 opened this issue Apr 6, 2021 · 2 comments
Open

Multipart form? #55

tshubham7 opened this issue Apr 6, 2021 · 2 comments

Comments

@tshubham7
Copy link

tshubham7 commented Apr 6, 2021

Package version eg. v9, v10:

Issue, Question or Enhancement:

can you tell me, how can i use this for multipart files??

Code sample, to showcase or reproduce:

// Employee
type Employee struct {
	Name  string
	Image *multipart.FileHeader
}

// Employees
type Employees struct {
	Data []Employee
}
{
    "data": [
        {
            "name": "some name1",
            "image": "file1.jpg"
        },
        {
            "name": "some name2",
            "image": "file2.jpg"
        }
    ]
}

@deankarn
Copy link
Contributor

deankarn commented Apr 7, 2021

@tshubham7 I'm not 100% clear on your use case. It looks like you incoming data is in JSON format.

@apuatcfbd
Copy link

Does it supports file validation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants