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

Error handling and Validation in Multiple File Uploads #37

Open
JayeshPadhiar opened this issue Oct 13, 2021 · 5 comments
Open

Error handling and Validation in Multiple File Uploads #37

JayeshPadhiar opened this issue Oct 13, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@JayeshPadhiar
Copy link
Collaborator

The FileUpload.jsx deals with the uploading one or more Resume files in the PDF format.

File Validation

The function uploadFiles() (line 17) is used for uploading the files to the required server endpoint.

The task is to validate the format and the size of the Resume file and call the POST Request API only if the ALL the files being uploaded are valid.

The Resume file is valid only if

  • The format is PDF
  • The size of file is <= 10MB

Error Handling

Surround the code with error handling statements in order to ensure that application doesnt break due to any exceptions during runtime.

@JayeshPadhiar JayeshPadhiar added enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed labels Oct 13, 2021
@Kesav890
Copy link

Kesav890 commented Oct 13, 2021

Can i work on this? I would like to give it a try

@JayeshPadhiar
Copy link
Collaborator Author

Done !

@Kesav890, you can raise a Pull Request to the dev branch after making the changes : )

@Kesav890 Kesav890 removed their assignment Oct 13, 2021
@Kesav890
Copy link

Up for grabs!

@nguyenhung15913
Copy link

Hi, I am interested in this issue, can you assign it to me? Thanks.

@Yashdew
Copy link
Owner

Yashdew commented Oct 14, 2021

@nguyenhung15913 sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants