Qld-Health-Online-Team / design-system

11 stars 7 forks source link

Rework xss for file upload #173

Closed sanamqldhealth closed 6 days ago

sanamqldhealth commented 1 week ago

Rework xss for file upload QHWT-1180

This pull request includes several changes to the file upload functionality in src/components/file_upload/js/global.js. The main improvements focus on enhancing file name validation, sanitizing file names, and improving error handling.

File Name Validation and Sanitization:

Error Handling:

Code Refactoring: