Need help with spring-boot-file-upload-download-rest-api-example?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

callicoder
304 Stars 235 Forks 9 Commits 5 Opened issues

Description

Spring Boot File Upload / Download Rest API Example

Services available

!
?

Need anything else?

Contributors list

# 12,324
Java
Spring ...
Spring
CSS
3 commits

Spring Boot File Upload / Download Rest API Example

Tutorial: Uploading an Downloading files with Spring Boot

Steps to Setup

1. Clone the repository

git clone https://github.com/callicoder/spring-boot-file-upload-download-rest-api-example.git

2. Specify the file uploads directory

Open

src/main/resources/application.properties
file and change the property
file.upload-dir
to the path where you want the uploaded files to be stored.
file.upload-dir=/Users/callicoder/uploads

2. Run the app using maven

cd spring-boot-file-upload-download-rest-api-example
mvn spring-boot:run

That's it! The application can be accessed at

http://localhost:8080
.

You may also package the application in the form of a jar and then run the jar file like so -

mvn clean package
java -jar target/file-demo-0.0.1-SNAPSHOT.jar

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.