# Error 413 - Payload too large error upon uploading files to weaviate hosted in Azure Kubernetes service

**URL:** <https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989>\
**Category:** Support\
**Created:** [November 20, 2023, 12:46pm UTC](https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989 "2023-11-20T12:46:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sg4544](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sg4544/32/673_2.png) [@sg4544](https://forum.weaviate.io/u/sg4544)\
**Post date:** [November 20, 2023, 12:46pm UTC](https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989/1 "2023-11-20T12:46:58Z")

</div>

Error 413 - Payload too large error upon uploading files to weaviate hosted in Azure Kubernetes service

---

<div class="post-metadata">

**Author:** ![sg4544](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sg4544/32/673_2.png) [@sg4544](https://forum.weaviate.io/u/sg4544)\
**Post date:** [November 20, 2023, 12:48pm UTC](https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989/2 "2023-11-20T12:48:24Z")

</div>

weaviate version 1.22.3 hosted on azure lubernetes service AKS cluster

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 20, 2023, 12:54pm UTC](https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989/3 "2023-11-20T12:54:55Z")

</div>

Hi @sg4544 ! Welcome to our community 🤗

Is it in WCS or have you deployed yourself? in that case, have you used [our helm chart](https://github.com/weaviate/weaviate-helm)?

Thanks!

---

<div class="post-metadata">

**Author:** ![Saket\_Arora](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/saket_arora/32/674_2.png) [@Saket\_Arora](https://forum.weaviate.io/u/Saket_Arora)\
**Post date:** [November 20, 2023, 12:55pm UTC](https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989/4 "2023-11-20T12:55:22Z")

</div>

I am trying to upload a file from front-end but if the file size is greater than 1 MB, I get this issue saying ‘413 Payload too large’.  
The functionality involves user uploading any pdf file from the system to weaviate schema but the limit is 1 MB. Anyhting above this limit gives this error.

---

<div class="post-metadata">

**Author:** ![sg4544](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sg4544/32/673_2.png) [@sg4544](https://forum.weaviate.io/u/sg4544)\
**Post date:** [November 20, 2023, 1:05pm UTC](https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989/5 "2023-11-20T13:05:58Z")

</div>

Hi, yes deployed using your helm chart.  
helm upgrade --install “weaviate” weaviate/weaviate --namespace “weaviate” --values .\values.yaml

---

<div class="post-metadata">

**Author:** ![sg4544](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sg4544/32/673_2.png) [@sg4544](https://forum.weaviate.io/u/sg4544)\
**Post date:** [November 20, 2023, 1:06pm UTC](https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989/6 "2023-11-20T13:06:42Z")

</div>

Please note only files \>1MB fail the upload. So its ideally a config parameter somewhere limiting it.

---

<div class="post-metadata">

**Author:** ![Saket\_Arora](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/saket_arora/32/674_2.png) [@Saket\_Arora](https://forum.weaviate.io/u/Saket_Arora)\
**Post date:** [November 21, 2023, 11:14am UTC](https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989/7 "2023-11-21T11:14:50Z")

</div>

@DudaNogueira Can you provide something regarding this?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 21, 2023, 2:32pm UTC](https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989/8 "2023-11-21T14:32:56Z")

</div>

Ok, just to make sure:

Are you uploading the pdf file to a [blob field](https://weaviate.io/developers/weaviate/config-refs/datatypes#datatype-blob)?

Because the way it usually goes is that you upload first to a backend, this backend will extract the content from that pdf, then chunk those contents and from the backend you insert the data to be vectorized and indexed.

Apart from a blob field, I cannot think of other scenario where a pdf/file should be uploaded directly to Weaviate.

By the way, have you seen the new Verba release? It has a really nice examples on how to achive this kind of feature:

> **[GitHub - weaviate/Verba: Retrieval Augmented Generation (RAG) chatbot powered...](https://github.com/weaviate/Verba/)**
>
> Retrieval Augmented Generation (RAG) chatbot powered by Weaviate - GitHub - weaviate/Verba: Retrieval Augmented Generation (RAG) chatbot powered by Weaviate

---

<div class="post-metadata">

**Author:** ![Saket\_Arora](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/saket_arora/32/674_2.png) [@Saket\_Arora](https://forum.weaviate.io/u/Saket_Arora)\
**Post date:** [November 22, 2023, 11:16am UTC](https://forum.weaviate.io/t/error-413-payload-too-large-error-upon-uploading-files-to-weaviate-hosted-in-azure-kubernetes-service/989/9 "2023-11-22T11:16:50Z")

</div>

@DudaNogueira  
I am sharing the schema I have used:-

const knowledge\_doc = {  
class: ‘document’,  
description: ‘a part of a document’,  
vectorizer: ‘text2vec-openai’,  
moduleConfig: {  
‘text2vec-openai’: {  
vectorizeClassName: false  
}  
},  
properties: [  
{  
dataType: [‘text’],  
description: ‘The text of the page’,  
name: ‘content’,  
moduleConfig: {  
‘text2vec-openai’: {  
skip: false  
}  
}  
},  
{  
dataType: [‘text’],  
description: ‘The document containing this text’,  
name: ‘source’,  
moduleConfig: {  
‘text2vec-openai’: {  
skip: true  
}  
}  
},  
{  
dataType: [‘int’],  
description: ‘This is the number of tokens for the text’,  
name: ‘tokenCount’,  
moduleConfig: {  
‘text2vec-openai’: {  
skip: true  
}  
}  
}  
]  
};
