We need a public api endpoint that will let users upload an image to our webserver that will be hosted from our website. This is for the "list of officers" page. We can consider using some image hosting service like Amazon s3 or if digitalocean has something like this.
We expect to host 100-1000 photos in this way (future + past + some extra margin).
Requirements:
look into image hosting services to determine if they're worth it, vs storing on disk, vs storing in database vs more?
NOTE: we probably just want to serve them from a folder our machine (we have 15GB free, so easy peasy!)
endpoint for an executive to upload a photo of themselves to the website for their current officer term
if an executive has more than one officer term, they may upload one photo per officer term
should also resize the image to something reasonable for web, like 0.5 megapixels
if the user wants to re-upload an image, that's okay, but the old photo must be deleted
in order to be allowed to use the endpoint, the user must be authenticated as a current officer. If the user is no longer a current officer (ie. past exec / officer), the endpoint should deny access
(new executives will be added by a sysadmin or DoA / Pres / VP, at which point their user info will be incomplete, but we still know they're an executive)
a private endpoint (admin permissions only) for getting how much space the photos are taking up, for the admin dashboard
We need a public api endpoint that will let users upload an image to our webserver that will be hosted from our website. This is for the "list of officers" page. We can consider using some image hosting service like Amazon s3 or if digitalocean has something like this.
We expect to host 100-1000 photos in this way (future + past + some extra margin).
Requirements: