oracle / oracle/oci-java-sdk

Limitation of 6MB file attachment while uploading (through API Gateway) to object storage?

Open
#493 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Functions
Dominant language
Java
Stars
243
Forks
171
Avg merge
30m
Merged PRs (30d)
4

Description

I have a requirement to develop the cloud function to perform CRUD operations on file attachments into Object Storage. But I noticed the 6MB limitation of attachment content while uploading via Gateway.
Ref: https://docs.oracle.com/en-us/iaas/Content/APIGateway/Reference/apigatewaylimits.htm
i.e, client request -> API Gateway -> attachment function -> object storage

How to overcome this issue?
Since sometimes I need to upload large files and hence I found the multipart support and it works well from the cloud function here, but not sure how to receive/interpret the multipart/form-data body request in the cloud function.

Also, I referred to the sample codes and didn't get anywhere on how to receive the body content in the form of a multipart (in the handler class) while sending a request through API Gateway. Is there any specific example available for this use case?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked API Gateway limits and Object Storage multipart-upload documentation, then inspect the repository for any cloud-function or multipart request examples. Done means providing a specific, documented way to receive multipart/form-data through API Gateway for the described upload flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, cloud
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.