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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

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


Go to End


2 Posts   1203 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