Wildbook
Wildbook copied to clipboard
image upload component
Context
We need photo upload across different pages. Might as well make it a component 😃
Sign off requirements
Non-functional requirements
- PR must go to feature branch
submission_page
Functional requirements
- supports jpg, jpeg, png, and bmp
- drop folders/image or click to browse
- displays thumbnail of file uploaded
- x to remove uploaded file
- button to "add more files" if any files have already been uploaded
- fail state "failed to upload images"
Designs
Initial state: no images uploaded
State in-use: images uploaded
investigate existing mechanism for adding images to encounters to see what might be reusable. very likely some backend code can be recycled. maybe also frontend.
Maximum uploadable media size: maxMediaSize from commonConfiguration.properties fail state "The file is too large. Please upload a file smaller than [maxSize] MB."? may need to show in photo upload requirement copy