Get files directory


#1

Is there an Omeka S function to get one of the following?

  • the path of a file in the “files/original” directory
  • the path of the “files/original” directory
  • the path to the omeka install ($site->url(); gets the child site, but I’m interested in the parent)

$media->render();
will display the file. But I’m not interested in the html, just the path.

$media->filename();
gets the filename, but not the path.


#2

You want the local path or the URL?


#3

I would like the URL please.


#4

$media->originalUrl() should do it.


#5

Yes! Perfect. Thank you.