Project example upload video using springboot v2 via Rest API, then compressed and generated thumbnails of videos.
System Required
- maven
- Java 8
- ffmpeg
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
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
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'