Named @RequestParam("myfile") in the internal code.
In the HTML form, the "name" attribute of the element is set to "myfile", and the "Key" of the form-data in Postman is set to "myfile".
Put in "your_path" the path identified by the Linux "pwd" command.
sudo docker run -d -p 8080:8080 -v /{your_path}/uploads:/app/uploads -e --name fileupload xcevor/fileupload-springboot:0.3
sudo docker run -d -p 8080:8080 -v /{your_path}/host_dir:/app/container_dir -e UPLOAD_DIR_ENV=container_dir/ --name fileupload xcevor/fileupload-springboot:0.3
ex)
sudo docker run -d -p 8080:8080 -v /home/ubuntu/host_dir:/app/container_dir -e UPLOAD_DIR_ENV=container_dir/ --name fileupload xcevor/fileupload-springboot:0.3
Content type
Image
Digest
sha256:5b8ef266a…
Size
328.1 MB
Last updated
about 3 years ago
docker pull xcevor/fileupload-springboot