Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

filename and URL bringing up just directory name after uploading with uploadify


Reply


2 Posts   821 Views

Avatar
vancouverWill

Community Member, 121 Posts

10 March 2011 at 12:21pm

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

Avatar
vancouverWill

Community Member, 121 Posts

17 March 2011 at 12:39pm

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