Skip to content

Commit

Permalink
Merge pull request #72 from insea-connect/drives
Browse files Browse the repository at this point in the history
Drives
  • Loading branch information
AmimiHamza authored Jun 6, 2024
2 parents 6c05ae9 + cfc792a commit adbe0dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/insea-connect-backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
/src/main/resources/static/uploads/

### STS ###
.apt_generated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public String uploadFile(MultipartFile file)throws IOException{

// Get the filename and sanitize it
String fileName = StringUtils.cleanPath(file.getOriginalFilename());
fileName = "A"+System.currentTimeMillis()+fileName;

// Create the upload directory if it doesn't exist
Path uploadPath = Paths.get(UPLOAD_DIR);
Expand Down

0 comments on commit adbe0dd

Please sign in to comment.