spring-guides / gs-uploading-files

Uploading Files :: Learn how to build a Spring application that accepts multi-part file uploads.

Home Page:http://spring.io/guides/gs/uploading-files/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Store in database

OlivlfilipeOliveira opened this issue · comments

How can I get the file to store the same in a database? I've been trying to do this for a few days.

@OlivlfilipeOliveira
Personally, i've stored the file path in DB at a table named [files], and then use the [files] table later on when executing [ storageService.loadAll() ] to get all files

that was useful as i need to manage user access