Skip to content

Cant change project icon #5949

@jorisstudios

Description

@jorisstudios

Please confirm the following.

What browsers are you seeing the problem on?

Chrome (including Arc, Brave, Opera, Vivaldi)

Describe the bug

So i want to change the icon of my upcomming mod/project but it gives the following error:

[file_hosting_error] Error while uploading file: S3 error when deleting file: Got HTTP 403 with content '<?xml version="1.0" encoding="UTF-8"?><Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your secret access key and signing method.</Message><StringToSign>AWS4-HMAC-SHA256
20260429T180315Z
20260429/auto/s3/aws4_request
c40b966d94fe1b24b86022f205dc591b4c71afcdfad0343876cea78f733bf9da</StringToSign><StringToSignBytes>41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 0a 32 30 32 36 30 34 32 39 54 31 38 30 33 31 35 5a 0a 32 30 32 36 30 34 32 39 2f 61 75 74 6f 2f 73 33 2f 61 77 73 34 5f 72 65 71 75 65 73 74 0a 63 34 30 62 39 36 36 64 39 34 66 65 31 62 32 34 62 38 36 30 32 32 66 32 30 35 64 63 35 39 31 62 34 63 37 31 61 66 63 64 66 61 64 30 33 34 33 38 37 36 63 65 61 37 38 66 37 33 33 62 66 39 64 61</StringToSignBytes><CanonicalRequest>DELETE
/modrinth-cdn/data/bPqCF6XU/3779d4a254ef863e8bd185c64c62573a53f1bad2.png

content-length:
content-type:text/plain
host:9ddae624c98677d68d93df6e524a6061.r2.cloudflarestorage.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20260429T180315Z

content-length;content-type;host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855</CanonicalRequest><CanonicalRequestBytes>44 45 4c 45 54 45 0a 2f 6d 6f 64 72 69 6e 74 68 2d 63 64 6e 2f 64 61 74 61 2f 62 50 71 43 46 36 58 55 2f 33 37 37 39 64 34 61 32 35 34 65 66 38 36 33 65 38 62 64 31 38 35 63 36 34 63 36 32 35 37 33 61 35 33 66 31 62 61 64 32 2e 70 6e 67 0a 0a 63 6f 6e 74 65 6e 74 2d 6c 65 6e 67 74 68 3a 0a 63 6f 6e 74 65 6e 74 2d 74 79 70 65 3a 74 65 78 74 2f 70 6c 61 69 6e 0a 68 6f 73 74 3a 39 64 64 61 65 36 32 34 63 39 38 36 37 37 64 36 38 64 39 33 64 66 36 65 35 32 34 61 36 30 36 31 2e 72 32 2e 63 6c 6f 75 64 66 6c 61 72 65 73 74 6f 72 61 67 65 2e 63 6f 6d 0a 78 2d 61 6d 7a 2d 63 6f 6e 74 65 6e 74 2d 73 68 61 32 35 36 3a 65 33 62 30 63 34 34 32 39 38 66 63 31 63 31 34 39 61 66 62 66 34 63 38 39 39 36 66 62 39 32 34 32 37 61 65 34 31 65 34 36 34 39 62 39 33 34 63 61 34 39 35 39 39 31 62 37 38 35 32 62 38 35 35 0a 78 2d 61 6d 7a 2d 64 61 74 65 3a 32 30 32 36 30 34 32 39 54 31 38 30 33 31 35 5a 0a 0a 63 6f 6e 74 65 6e 74 2d 6c 65 6e 67 74 68 3b 63 6f 6e 74 65 6e 74 2d 74 79 70 65 3b 68 6f 73 74 3b 78 2d 61 6d 7a 2d 63 6f 6e 74 65 6e 74 2d 73 68 61 32 35 36 3b 78 2d 61 6d 7a 2d 64 61 74 65 0a 65 33 62 30 63 34 34 32 39 38 66 63 31 63 31 34 39 61 66 62 66 34 63 38 39 39 36 66 62 39 32 34 32 37 61 65 34 31 65 34 36 34 39 62 39 33 34 63 61 34 39 35 39 39 31 62 37 38 35 32 62 38 35 35</CanonicalRequestBytes><SignatureProvided>1de298a9febce4c34b0ba51309640e7036b4fcd0493426f563242c5b998e1769</SignatureProvided></Error>'

And when i refresh the page it hasn't updated the icon.

Steps to reproduce

  1. Create a project or go to the page of one you have (DRAFT)
  2. Set a project icon and save that
  3. Try to change the icon to the following image: Image
  4. Try to save the draft/project
    If the bug is consistent across projects (i have tried another laptop and my phone) you should now get the error i was talking about.

Expected behavior

I expect it to just upload it and then replace the old icon.

Additional context

This bug is specifically when CHANGING the icon of a project, not when initially setting it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    websiteRelates to Modrinth.com web frontend

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions