Get file absolute path

0
Good day!

I am trying to get the absolute path of the file using getSongFileURL($song) and getSongFileURL($song->filename), or $file_link but all i get is the folder where the audio files are stored. I am trying to get the absolute path with 'title.mp3'

Right now is only displaying folder/songs/
I am trying to get to display folder/songs/file.mp3 as text. Any idea? Thank you.
Responses (5)
  • Accepted Answer

    Monday, February 16 2015, 07:17 PM - #Permalink
    0
    are you passing the $song object to the function? with a filename in it?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 18 2015, 01:13 PM - #Permalink
    0
    No, i am editing the artist/tmpl/detailed_album.php trying to get to display the songs location in it, which is a single file/song per each album.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 18 2015, 01:39 PM - #Permalink
    0
    I tried even $filePath from file model, but nothing
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 18 2015, 06:07 PM - #Permalink
    0
    you didn't answer my question... the function getSongFileURL needs you to pass it a song object as an argument. are you doing that?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, February 19 2015, 03:23 PM - #Permalink
    0
    No, i don't think i did. But nevermind, the problem is solved for the purposes i needed.
    The reply is currently minimized Show
Your Reply