# \[Self hosted\] ERROR \[AttachmentsService\] InvalidArgument: Credential access key has length 40, should be 32

**URL:** <https://community.nocodb.com/t/self-hosted-error-attachmentsservice-invalidargument-credential-access-key-has-length-40-should-be-32/2047>\
**Category:** Self-Host\
**Created:** [August 12, 2025, 4:55pm UTC](https://community.nocodb.com/t/self-hosted-error-attachmentsservice-invalidargument-credential-access-key-has-length-40-should-be-32/2047 "2025-08-12T16:55:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![havlis23](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@havlis23](https://community.nocodb.com/u/havlis23)\
**Post date:** [August 12, 2025, 4:55pm UTC](https://community.nocodb.com/t/self-hosted-error-attachmentsservice-invalidargument-credential-access-key-has-length-40-should-be-32/2047/1 "2025-08-12T16:55:55Z")

</div>

Hello everyone,

I have a problem with uploading media to an attachment field.

I’m running a self-hosted NocoDB instance, and when I try to upload a JPEG to a media field, I get the following error:

```auto
Credential access key has length 40, should be 32

```

When I check my Docker container logs, I see this:

```auto
ERROR [AttachmentsService] InvalidArgument: Credential access key has length 40, should be 32

```

Uploading via API works.

Can anyone help? I’m quite lost on how to fix this.

---

<div class="post-metadata">

**Author:** ![pranavxc](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@pranavxc](https://community.nocodb.com/u/pranavxc)\
**Post date:** [August 13, 2025, 8:04am UTC](https://community.nocodb.com/t/self-hosted-error-attachmentsservice-invalidargument-credential-access-key-has-length-40-should-be-32/2047/2 "2025-08-13T08:04:04Z")

</div>

From the error message, it’s clear that the issue is related to the access key length. Are you using any external storage service such as S3, MinIO, or similar? If so, please double-check the access key you’ve configured.

Also, you mentioned that uploading via API works - could you share which API endpoint you’re using and how you’re making the request?

Please include a short screen recording or screenshot of the steps you’re taking in the UI, along with any relevant backend logs (from the NocoDB container) when the error occurs.
