Jump to:

22987 Posts in 11841 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » filename and URL bringing up just directory name after uploading with uploadify

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 745 Views
  • vancouverWill
    Avatar
    Community Member
    121 Posts

    filename and URL bringing up just directory name after uploading with uploadify Link to this post

    filename and URL bringing up just directory name

    had a search around and couldn't find this anywhere. trying to access a file from the frontend template by using $variable.Filename or $variable.URL

    I even tried a custom function in the controller like below

    public function getHomePageVideo(){
          return $this->homePageVideo()->Filename;
    }

    but always get the same result assets/ and not the filename or the directory the file is stored in, btw I used uploadify in the CMS to upload the file, it is saved in the db and I can see it in FTP and edit it in the CMS but just can't get it out from the frontend. been trying for a while now so hoping someone recogizes what is going on here. thanks for the help

  • vancouverWill
    Avatar
    Community Member
    121 Posts

    Re: filename and URL bringing up just directory name after uploading with uploadify Link to this post

    any thoughts? there must be something simple i'm missing or possibly a server setting?
    really appreciate any help

    745 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.