Closed parkerra closed 7 months ago
Name | Link |
---|---|
Latest commit | 874dff2d6bc8918b80fa946f3d285627e906fa66 |
Latest deploy log | https://app.netlify.com/sites/canine-assistants/deploys/65ceb6c31625f30008b2daa2 |
Deploy Preview | https://deploy-preview-120--canine-assistants.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
awesome job parker!
Image Uploads and Deleting
Issue Number(s): #107
Created backend API endpoint and actions for uploading and deleting images in Backblaze and connected them to the frontend ImageUpload component. Upload an image by either creating a new dog or editing an existing one. The upload API endpoint also sets the dog's image URL as the uploaded image. An image can be deleted by editing an existing dog and hitting
delete
thensave
. Images are also deleted when a dog is deleted. The seed file has been updated as well so that each dog existing dog has the default fieldimage: ""
, so make sure to seed the database before testing.Checklist
Related PRs
PR Number(s): #108
How To Test
Log into Backblaze.com with information from Bitwarden, find using
bw list items --search backblaze
, see password corresponding to gtbitsofgood.dev@gmail.com (NOT gtbitsofgood.aau@gmail.com)Add these values to
.env
file:BACKBLAZE_BUCKET_ID=
[found on Backblaze website under Bucket ID on first page]BACKBLAZE_KEY_ID=
[found on Backblaze website on Account > Application Keys > Your Application Keys > keyID, note that this is NOT the master key]BACKBLAZE_APP_KEY=
[found in Bitwarden under appKey]Make sure that information is correct by calling
/api/images
to see ifsuccess
is true or an error message. Don't hesitate to reach out if there are any problems!