How to use the storage system to generate a file download?
Is there a function I can use to get the complete path of file or how to get this working? I would like to use the storage systems functions and not "hardcode" the mainpath into my app.
@bobbybouwmann
How to define before the current storage system, like amazon, or local?
I would like to use in later future for example amazon to store all my files, how can I write the code so I can easily switch from local to amazon s3?
This would allow you to then swap out 's3' to 'local' or whatever storage you wanted to use. It also allows you to share a file that doesn't have a public url, but is only accessible from your app. It feels hacky, but works.