Skip to content

dimMaryanto93/springboot2-upload-video-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Springboot Rest API upload media

Project example upload video using springboot v2 via Rest API, then compressed and generated thumbnails of videos.

System Required

Run application

prepared database using postgresql:

# create schema user
create user uploader with superuser login password 'uploader';

# crete schema database
create database uploader;

run springboot project:

mvn clean spring-boot:run

Run Application with docker-componse

Build image using maven command:

mvn clean install -DskipTests

it's will build the image, then you can run the container with docker-compose

docker-compose up -d

example Rest API

curl -X POST \
  http://localhost:8080/api/media/upload/video \
  -H 'Content-Type: application/octet-stream' \
  -H 'cache-control: no-cache' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F 'content=@/Users/user/Movies/file-video.mvk'

About

Upload video, using springboot then compressed

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published