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

maxUploadFiles fails #24

Open
mg-i-car-sor opened this issue Apr 7, 2023 · 2 comments
Open

maxUploadFiles fails #24

mg-i-car-sor opened this issue Apr 7, 2023 · 2 comments

Comments

@mg-i-car-sor
Copy link

Great component!
In this case:
<FileUpload id="file" title="" multiFile={false} maxFileSize={10} allowedExtensions={["docx", "pdf", "doc"]} errorSizeMessage={"Size must be then 10Mb"} maxUploadFiles={1} showPlaceholderImage={false} onFilesChange={handleFilesChange} onContextReady={(context) => {}} />
It should accept only one file, but it takes everyone I select or drag in.
Here a picture:
image
Best regards.

@marcszy91
Copy link

Maybe this PR helps (not tested):

#27

@zhangjianrencai
Copy link

zhangjianrencai commented Apr 9, 2024

I met the same problem @rouftom

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