Skip to content

Latest commit

 

History

History
45 lines (17 loc) · 1.24 KB

File metadata and controls

45 lines (17 loc) · 1.24 KB

springboot-file-project-upload-file-directly-in-directory-folder

File upload and download & store image into directory or folder and the path of the image is store in Database - Spring Boot REST API and Spring Data JPA

API endpoints:

POST: "http://localhost:9595/api/file-upload-to-directory"

  • for input - Key = "file" and Value ="fileName.png" (png/jpeg etc)

GET: "http://localhost:9595/api/file-download-from-directory/mdtalalwasim_photo.jpg"

Postman [POST]:

  • input 1:

postman-post-request

Postman [GET]:

  • input 1:

postman-get-request

DB:

db

Project Explorer: (uploads) folder

project-explorer

Thank you!