-
Notifications
You must be signed in to change notification settings - Fork 248
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
(feat) Restrict attachments to configured allowed extensions #1584
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @icrc-loliveira!
packages/esm-patient-attachments-app/src/attachments/use-allowed-extensions.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-attachments-app/src/attachments/use-allowed-extensions.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-attachments-app/src/attachments/use-allowed-extensions.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-attachments-app/src/camera-media-uploader/media-uploader.component.tsx
Outdated
Show resolved
Hide resolved
…ed-extensions.ts Co-authored-by: Ian <[email protected]>
…/media-uploader.component.tsx Co-authored-by: Ian <[email protected]>
@icrc-loliveira Could you look at the merge conflicts here? Should be a simple fix. |
…-chart into 457330 # Conflicts: # packages/esm-patient-attachments-app/src/attachments/attachments-overview.component.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of small things. Has this been tested in a system without that global property set?
packages/esm-patient-attachments-app/src/attachments/attachments-overview.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-patient-attachments-app/src/attachments/use-allowed-extensions.ts
Outdated
Show resolved
Hide resolved
packages/esm-patient-attachments-app/src/attachments/use-allowed-extensions.ts
Outdated
Show resolved
Hide resolved
…ed-extensions.ts Co-authored-by: Ian <[email protected]>
…ed-extensions.ts Co-authored-by: Ian <[email protected]>
Requirements
Summary
This PR created a new configuration 'allowedExtensions' that allow filter by the extensions that can be attached to openMRS.
Screenshots