seems there's an optional parameter on
getURL($grant = true), but it doesn't seem to change the result if its true or false
Yeah I saw that grant thing. I think it just means let the current user have access to it. I would have though setting it to false would mean you get nothing
There's also getSourceURL() but I think that might just be the public URL but for Images that have been resized
Rather than the resized URL
@null could it be the URL is the same and the assets admin controller does magic to serve it from the .protected folder if possible, otherwise 401?
Possibly, that makes sense. I'm not accessing it via the controller in this context. It's a good lead to investigate though, cheers 🙂
As these are technically implementation details that should be hidden from the user, same as the version hash..
if you need to know where the file actually lives in the physical folder structure, there might be different methods on the filesystem adapter level
as with e.g. the S3 module, there’s no physical path
Very true. But even S3 has a public vs protected mechanism that exposes different URL endpoints. Was hoping that there was an asset path for both cases