I'd love to know which users they asked before implementing the feature. Both of them seem out of touch
You want to tick these two
How do I get the "protected" URL of a file when its subject to access controls? getURL only seems to return
/assets/path/to/hash/filename rather than
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..