You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a Statamic page with a form where users can upload images and videos.
I want the page administrator (or every user which is logged in to the CP) to view and download the assets submitted via a form. I've created a PR for this: statamic/cms#4379
Also I want these files to be not accessible by anyone not logged in to the CP. So we need a URL similiar to the downloadLink URL, but just to view the file without downloading it.
I first used a asset container on a custom filesystem which was defined like this:
We have a Statamic page with a form where users can upload images and videos.
I want the page administrator (or every user which is logged in to the CP) to view and download the assets submitted via a form. I've created a PR for this: statamic/cms#4379
Also I want these files to be not accessible by anyone not logged in to the CP. So we need a URL similiar to the
downloadLink
URL, but just to view the file without downloading it.I first used a asset container on a custom filesystem which was defined like this:
The problem is, that the
url
of the asset file in the CP isnull
, so there is no way to view it.downloadLink
is working.My current workaround for this is to use a folder in public_path now. I'm not really happy about it because it's now publicly accessible.
The text was updated successfully, but these errors were encountered: