View more context

 

null

I'd love to know which users they asked before implementing the feature. Both of them seem out of touch

null

tries again: 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 /assets/.protected/path/to/hash/filename?

🎉 (1)
null

seems there's an optional parameter on getURL($grant = true), but it doesn't seem to change the result if its true or false

Aaron Cooper

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

Aaron Cooper

There's also getSourceURL() but I think that might just be the public URL but for Images that have been resized

MichalKleiner

@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?

null

Possibly, that makes sense. I'm not accessing it via the controller in this context. It's a good lead to investigate though, cheers 🙂

MichalKleiner

As these are technically implementation details that should be hidden from the user, same as the version hash..