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

[improvement] files validation with zod #20

Closed
huylee99 opened this issue Jun 27, 2023 · 0 comments · Fixed by #19
Closed

[improvement] files validation with zod #20

huylee99 opened this issue Jun 27, 2023 · 0 comments · Fixed by #19
Assignees
Labels
enhancement New feature or request feature new feature

Comments

@huylee99
Copy link
Owner

  • implement file validation with zod
  • allowed file types can be passed into the hook
const { uploadFiles } = useUpload({
    allowedFileTypes: ["image/png", "image/jpeg"],
    // allowed file types can be passed into the hook
    // mime type list https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
    },
  });
@huylee99 huylee99 added enhancement New feature or request feature new feature labels Jun 27, 2023
@huylee99 huylee99 self-assigned this Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant