I am using Python SDK for OCI. I tried the Upload manager example and its working perfectly fine when i try to upload files from file system. But i have to expose this python code as REST service (using flask) and files to be uploaded to object storage will come as payload for REST. Does it have to multipart/mixed content type in this case or can it be multipart/form-data as well.
Upload files to object storage using python SDK
1.2k views Asked by user1945183 At
1
There are 1 answers
Related Questions in ORACLE-CLOUD-INFRASTRUCTURE
- Terraform OCI error when creating Network Load Balancer
- BIP Report Layout - Chart Values rounding up and showing as K (thousands)
- Unable to configure backend for Oracle cloud in terraform version 1.6.4 getting error authorisation header malformed
- OCI login FAILS using API with admin user
- I need help to generate Oracle Cloud (OCI) Vulnerability Scanning Reports (VSS) for Host and Container. (Shell/Python)
- REST API concat in OIC giving extra character
- In Oracle Cloud Infrastructure, how to upload a csv file generated in a notebook directly into a bucket?
- What is the maximum length that an Oracle Cloud ID (OCID) can have?
- How may I perform OCIPing (or equivalent) from a .Net application?
- Unable to connect to Opensearch cluster via python client
- Issues with creating secrets using Oracle Cloud CLI
- I'm trying to enable Firebase OAuth to Oracle Cloud Instance
- Oracle-Cloud Typescript SDK Object Storage File Upload content type
- pods connectivity chatbotexternal and mongodb
- Integration Oracle Cloud Kafka + Elastic-agent doesn't work
Related Questions in OCI-PYTHON-SDK
- Check instance metrics
- Structured search returns only a limited set of attributes
- Unable to use the OCI Python SDK os_management_client, with a cross tenancy access instance principal setup
- I am trying to add the Tag (freefrom_tag) for particular compute instances in OCI using python script and facing TypeError
- Latest OCI SDK documantation page API reference does not list all service clients
- No such file or directory: '/opt/ml/input/data/test/revenue_train.csv' Sagemaker [SM_CHANNEL_TRAIN]
- Get list of all compartments in OCI Tenancy
- OCI response returns a list object with one entry
- Python sdk OCI : Remove backup policy of boot volume
- Python oci sdk question regarding boot volume backup
- Can't import ModelConfigurationDetails in the OCI notebooksession using conda env
- Creating compute instance from instance configuration
- reading response returns error python sdk OCI
- Is it possible to store user credentials on generated Oracle wallet?
- Upload files to object storage using python SDK
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
@user1945183, are you asking if Upload Manager can support multipart/form-data? Yes, Upload Manager can take in multipart/form-data.
The Upload Manager uses Object Storage's CreateMultipartUpload API. You can learn more about the CreateMultipartUpload API doc.
From CreateMultipartUploadDetails Reference you will find that content-type is optional and have no effect on Object Storage behavior.