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

Hi!
We are using Aspose Cloud v4 API to upload the file. As I understand from our plan and what was discussed here:
https://forum.aspose.cloud/t/file-size-limits/789 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.

Hello,

This is an example https://drive.google.com/file/d/1RgJDl5sdHqF6RfXfAyalycPv9RElzsVI/view?usp=sharing 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 "https://api.aspose.cloud/v4.0/words/storage/file/Temp/Test.docx" 
-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

Response

<?xml version="1.0" encoding="utf-8"?>
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Uploaded>
    <string>Test.docx</string>
  </Uploaded>
  <Errors />
</Response>

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

1 Like