# Merge XFDF and file data gets error with large file

**URL:** <https://pdfjs.community/t/merge-xfdf-and-file-data-gets-error-with-large-file/767>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [May 14, 2021, 6:59am UTC](https://pdfjs.community/t/merge-xfdf-and-file-data-gets-error-with-large-file/767 "2021-05-14T06:59:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![driley](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@driley](https://pdfjs.community/u/driley)\
**Post date:** [May 14, 2021, 5:17pm UTC](https://pdfjs.community/t/merge-xfdf-and-file-data-gets-error-with-large-file/767/3 "2021-05-14T17:17:03Z")

</div>

Hi Steven,

The max request size for the API is 5.5MB, which is why that error is happening. If you want to merge PDFs larger than that, you will have to upload them to a server (Amazon S3 for example) and provide a URL to the PDF instead of sending the raw data.

Cheers,  
Dustin

---

_[View the full topic](https://pdfjs.community/t/merge-xfdf-and-file-data-gets-error-with-large-file/767)._
