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

File Validation Not Working #27

Closed
ashadbubt opened this issue Mar 8, 2018 · 1 comment
Closed

File Validation Not Working #27

ashadbubt opened this issue Mar 8, 2018 · 1 comment

Comments

@ashadbubt
Copy link

ashadbubt commented Mar 8, 2018

Dear brother
i use this code for file upload validation . but its always show

{
    "validationError": {
        "photo": [
            "Photo is required"
        ]
    }
}

Whatever i put file or not . I just copy and past your file validation code form documentation .

@ashadbubt
Copy link
Author

Ok. Resolved the issue. Nothing wrong with the library. I was putting "multipart/form-data" in the header. Which was not necessary as postman already puts the Content-Type to that. Thanks.

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

1 participant