Free Support Forum -

Uploading big files (40-45MB) to Cloud Storage with Aspose.Words Cloud doesn't work

We are using Aspose Cloud v4 API to upload the file. As I understand from our plan and what was discussed here: the is no limit on the filesize.
However, when we are uploading the file of > 30 MB (40Mb, for example) we receive status 400 from the API with the error message “An error occurred while parse the multipart content: One or more errors occurred. Request body too large.”

Can you please confirm - is there or is there no file limit? If there is - what is the limit?
Are there extra costs related to bigger files and if so - where are they described?

Ideally, of course, would be if we could upload the bigger files as well!


Thanks for your inquiry. Since Aspose.Words Cloud 19.12 release, we have Increased maximum body size of uploaded files to 100MB from 29MB. I uploaded a 45MB file without any issue. Please share your sample file(using some free file sharing service e.g Dropbox, google drive etc.) along with sample code here. We will look into it and will guide you accordingly.


This is an example I’m trying to upload, the file has 53mb.
As a code snippet I’m using php to upload the file.

    $uri = sprintf('/4.0/words/storage/file/%s', $this->apiVersion, urlencode($fileInfo->getFilename()));
    $httpBody = new MultipartStream([
            'name' => 'File',
            'contents' => file_get_contents($fileInfo->getPathname()),
            'filename' => $fileInfo->getFilename(),
        ['name' => 'path', 'contents' => sprintf('/%s', $fileInfo->getFilename())],

    $response = $this->httpClient->send(
        new Request('PUT', $uri, ['Authorization' => $this->authToken->toHeader()], $httpBody),
        ['http_errors' => false]

The httpClient is a GuzzleClient and MultipartStream also is part of the same library.
Thank you for your help.


Thanks for your feedback. I have tested the scenario with your shared document and unable to notice the reported issue. We will appreciate it if you please double check it at your end, because today we have increased the memory limits of our servers. So it seems your issue is resolved as well.

curl -X PUT "" 
-H "accept: application/xml" 
-H "authorization: Bearer [Access_Token]" 
-H "Content-Type: multipart/form-data" 
-H "x-aspose-client: Containerize.Swagger" 
-T C:/Temp/53mb.docx


<?xml version="1.0" encoding="utf-8"?>
<Response xmlns:xsd="" xmlns:xsi="">
  <Errors />

Thank you, I think increasing our memory on your servers fixed my issue.

1 Like