nizam0786's avatar

Best place to store file uploads?

Hi Guys,

I want to know where is the best place to store documents which contain information about company employees. The documents vary in type and also contain in some cases contain confidential information.

I can easily save the files in the public folder however, is the public folder safe enough? or is there a better alternative?

Thanks in advance.

0 likes
3 replies
Web Confection's avatar
Level 3

@nizam0786 Not sure about the legalities when storing PID data but you could use a solution such as Amazon S3 inside private buckets that cannot be accessed by the public and the data can be encrypted at rest.

1 like
mvd's avatar

Hi Nizam0786,

"In Laravel's Flysystem integration, "visibility" is an abstraction of file permissions across multiple platforms. Files may either be declared public or private. When a file is declared public, you are indicating that the file should generally be accessible to others. For example, when using the S3 driver, you may retrieve URLs for public files."

See the file section, https://laravel.com/docs/5.6/filesystem

1 like

Please or to participate in this conversation.