Wildbook icon indicating copy to clipboard operation
Wildbook copied to clipboard

image upload component

Open TanyaStere42 opened this issue 1 year ago • 1 comments

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

Link to Prototype

Initial state: no images uploaded Image State in-use: images uploaded Image

TanyaStere42 avatar Sep 09 '24 19:09 TanyaStere42

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.

naknomum avatar Sep 27 '24 21:09 naknomum

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

erinz2020 avatar Oct 07 '24 14:10 erinz2020