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.

Customising the CMS /

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

ImageUploader not working


Go to End


1676 Views

Avatar
Trym

Community Member, 18 Posts

5 February 2009 at 10:57pm

Edited: 05/02/2009 10:59pm

Hi

I have according to the tutorial added a has_one relation to an Image-type in the Page-class.
(static $has_one = array('BackgroundPicture' => 'Image');).

When I try to upload an image in the administration a new folder is created each time named Upload-2, Upload-3, and so forth. and no picture is placed in the folder. The Upload-x folders are located in "assets"-folder.

When I in the Page.ss request the $BackgroundPicture.URL property the result is "/assets/Upload-3/MyImageName.jpg" and no picture is shown (there are no pictures located in the Upload-3-folder).

Any ideas of what is happening or how I show find out are very welcome.

Best regards
Trym