SEMOSS / semoss-ui

Apache License 2.0
17 stars 3 forks source link

210 restrict extension type #216

Closed rajivmaliDC closed 1 month ago

rajivmaliDC commented 2 months ago

created SelectSettings component to handle extensions Updated config.tsx to add extension input with SelectSettings component updated UploadBlock.tsx to validate file extensions

To test the feature:

Create a drag and drop app add upload block Select the upload block go to extension field select multiple extensions click save.

go back to the app click on choose file file type should be auto filtered by custom files(with list of extension user specified) user should be able to upload file with extension listed on custom file

click on custom file and change it to "All Files(.)" select the file type that is not listed on Custom file user should not be able to upload it

johbaxter commented 2 months ago

Will review by Friday

johbaxter commented 2 months ago

image

@rajivmaliDC Can you ensure the Upload Setting takes those extensions into account as well

rajivmaliDC commented 2 months ago

added inputProps to uploadSettings.tsx