This. The way I would do it would be to have the client send the size of the file in the request tha
This. The way I would do it would be to have the client send the size of the file in the request that generates the presigned URL, then in your backend code you check that the size is not too large and generate a presigned URL with the appropiate content-length