Ive written a Laravel application where I upload images and pdf files.
Currently, upload them to a folder in the public directory.
Now I'm trying Envoyer.io, where I can easily deploy my projects to server (s). The problem here is that each project has its own directory. Therefore, every time all these downloads disappear. Ive found out that Envoyer uses a symbolic link for the storage directory in each deployed project.
I can upload files to the storage directory, but when I return the URL from the files to the pth repository, I get a path like "/var/www/project/app/storage/file.ext", which is the base path. I do not want to return these links in my API for security reasons. Can I somehow download to the storage path and get these downloads with a friendlier url? Or does anyone have an ither solution?
source
share