43
Views
5
Comments
[Amazon Simple Storage Service (S3)] File too large to send to S3
Application Type
Reactive

We are using the component to upload files to S3. We have this error when sending a 500MB csv file:

The remote server returned an error: (413) Request Entity Too Large. We are using the Object_Put action. 

The file is generated in an async timer. 

In the documentation: https://docs.aws.amazon.com/AmazonS3/latest/userguide/upload-objects.html

it is detailed the maximum object sizes: Upload an object in parts by using the AWS SDKs, REST API, or AWS CLI – Using the multipart upload API operation, you can upload a single large object, up to 5 TB in size 

Am I missing something?

2024-10-09 04-44-30
Bhanu Pratap

Hi @Laia Ferrando Ferragud,

Can you check from service centre if the logs are created from the component service action, than I guess put_object action doesn't support Multipart Upload. Maybe you can try calling API directly from AWS. As you mentioned put object on S3 supports file upto 5 TB that's right but here issue might be with the component.

2020-10-26 08-15-55
Laia Ferrando Ferragud

Hi @Bhanu Pratap ,

The error is raised from the wrapper I have where I use this service action. However, I did not specify anywhere that I'm using a multipart upload. How could I check that? 

The action from the component doesn't have any config related to it either...

Greetings and thank you,

2024-10-09 04-44-30
Bhanu Pratap

Yes @Laia Ferrando Ferragud, The configuration are not available in the component service action that's why I would suggest to create custom API in AWS or C# extension logic to be able to upload files with big size as in your case.

2021-11-19 11-12-44
Rui Mendes

Hello @Laia Ferrando Ferragud,

You have a challenge ahead, as the extension available in the Forge does not support multipart uploads, and its implementation requires some knowledge.

If you know C#, you can solve your problem by implementing those methods. If you don't, consider reaching out to someone who does.

You can learn more about the topic here: link

2020-10-26 08-15-55
Laia Ferrando Ferragud

Hello again,

I could advance somewhat with changing the max config of the outsystems module by the shared configuration of the factory app

However, now I'm getting a different message: Array dimensions exceeded supported range. This message is generated not in the component, but when calling the wrapped action that contains it

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.