View more context

 

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..

MichalKleiner

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

MichalKleiner

as with e.g. the S3 module, there’s no physical path

null

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