Does R2 trust headers or does it recalculate Content-Length and Content-Type?

For Workers & Pages, what is the name of the domain?

none

What is the error number?

none

What is the error message?

none

What is the issue or error you’re encountering

none

What steps have you taken to resolve the issue?

None

What are the steps to reproduce the issue?

None

Sorry but I really don’t understand how this forum work. I don’t have an issue, just a question.
I’m trying to build a general purpose upload endpoint in my company. My question is:
Does Cloudflare R2 makes sure the file being sent (using a presigned url) is the size and type it says it is? If not, how can I secure these types of endpoints to make sure my users don’t upload anything problematic (like a corrupted file)?
Thank you in advance and sorry for the misuse of your forum if that’s the case.

This topic was automatically closed after 15 days. New replies are no longer allowed.