Jump to:

5517 Posts in 1734 Topics by 1222 members

Customising the CMS

SilverStripe Forums » Customising the CMS » ImageUploader not working

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

Page: 1
Go to End
Author Topic: 829 Views
  • Trym
    Avatar
    Community Member
    18 Posts

    ImageUploader not working Link to this post

    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

    829 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.