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

Allowed File Types does not restrict the selection of files according to the value provided in the property on Image component #1607

Closed
hlayisanimazuze opened this issue May 30, 2024 · 1 comment
Assignees
Labels
bug Something isn't working ready for testing

Comments

@hlayisanimazuze
Copy link
Collaborator

If a file type restriction is provided, clicking the 'Press to Upload' option shows all files, instead of filtering according to the specified file type.

Steps to reproduce the behavior:

  1. Go to 'https://function-adminportal-test.shesha.dev/shesha/forms-designer?id=e1244645-ca5f-4c23-8a25-9685f9867c3f'
  2. Click on photo component from Tab 1 and scroll down from the property panel to confirm the value provided on 'Allowed File Types'
  3. Click on file component from the same tab and scroll down from the property panel to confirm the value provided on 'Allowed File Types'
  4. Render the form: https://function-adminportal-test.shesha.dev/dynamic/TestModule/parentForm-table
  5. Click on 'Add' button
  6. Click on 'File' press to upload
  7. Before selecting, check on the dropdown that shows files allowed (Only PNG image)
  8. Close the file explorer box
  9. Click on photo 'press to upload'
  10. Check on the dropdown that show files allowed
  11. Actual Results: All files are allowed. The restriction provided on the configuration does not restrict the files like how it works on File/File List component

Expected behavior
When a file type restriction is provided, the files show be filtered accordingly when a user tries to upload a file

@hlayisanimazuze hlayisanimazuze added the bug Something isn't working label May 30, 2024
@hlayisanimazuze
Copy link
Collaborator Author

Related Item
#892

@hlayisanimazuze hlayisanimazuze changed the title Allowed File Types does not restrict the selection of files according to the value provided in the property Allowed File Types does not restrict the selection of files according to the value provided in the property on Image component May 30, 2024
AlexStepantsov pushed a commit that referenced this issue May 31, 2024
… to the value provided in the property on Image component #1607
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready for testing
Projects
None yet
Development

No branches or pull requests

2 participants