REST API service for uploading files to OCI Object Storage bucket implemented as Spring Boot application. Synchronous, Asynchronous and Multipart uploads using OCI Java SDK are demonstrated.
On your machine
java -version # JDK 11 is required.
git clone https://github.com/mkratky/osupload.git
cd osupload
mvn clean install
java -jar target/osupload-0.0.1-SNAPSHOT.jar <your object storage bucket compartment ocid> <bucket name> # if the bucket name doesn't exist it will be created
Using namespace: <your tenancy namespace>
Checking if bucket exists
Using existing Bucket Name : <bucket name>
curl -F file=@"yourfilename" localhost:8080/upload # for synchronous upload
curl -F file=@"yourfilename" localhost:8080/uploada # for asynchronous upload
curl -F file=@"yourfilename" localhost:8080/uploadm # for multipart upload of very large files