Question for the image request from the canister

Hi there, when I upload an image from the specific front-end to a bucket canister for storing images, it generates a public link so I can visit the uploaded image by the link. But an error comes out:
“Permission denied. Could not perform this operation.”
Does anyone know how to fix it?

have you implemented http handling?

Do you mean the HTTP handling implementation in the front-end?

no, I meant for the backend canister!

Ok, thanks for the answer, I will check my backend canister code, :slight_smile:

you can take idea from this repo: upload_file_rs/src/file_storage/src/file.rs at main · pramitgaha/upload_file_rs · GitHub

1 Like