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

Method to check whether the file is valid or not #2347

Closed

Conversation

mohan308-mike
Copy link

This method allows to check whether the uploaded file matches the required extentions, file size to be uploaded to the server.
isFileValid method takes 3 arguments
file -> the file that has been uploaded
allowedTypes -> An array of strings which containes the file types to be checked.
maxSizeInBytes -> maximum size to be uploaded in bytes.

@WikiRik
Copy link
Member

WikiRik commented Dec 16, 2023

Unfortunately I'm going to close this PR since it is not in scope for this project. From one of the first lines of the README; "This library validates and sanitizes strings only."

@rubiin
Copy link
Member

rubiin commented Dec 27, 2023

closing as per above comment

@rubiin rubiin closed this Dec 27, 2023
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

Successfully merging this pull request may close these issues.

3 participants