Skip to content

DBunthai/fileupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note I handled with small size small in this testing.


1. Go to the project directory

$ cd {path}/fileupload


2. Start DB and scan service

..fileupload$ docker-compose up -d postgres scan


3. Run the following command to build the project

fileupload$ ./mvnw clean && ./mvnw package


4. Run the following command to start the project

fileupload$ docker-compose up -d .


5. Paste the cURL to Postman or use the cURL

curl --location 'http://localhost:8080/api/v1/file/upload' \
--header 'accept: */*' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@"./src/main/resources/zfilestorage/dump/dump.txt"'

Diagrams

img.png


Overview

Simple Upload File Architecture and Implementation with Spring Boot

  • Spring Boot Rest Controller with Maltilpart to handle data stream from client-side
  • Clamav is used to scan file virus
  • Generate UUID or filekey to attach with the file metadata (filesize, filename...)
  • Store file in the storage with filekey

You can fetch from the storage with the filekey

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published