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.

Archive /

Our old forums are still available as a read-only archive.

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

CMS Image issue


Reply


2 Posts   1737 Views

Avatar
dany_doo

Community Member, 13 Posts

28 May 2008 at 10:29am

Edited: 28/05/2008 10:30am

Hi everybody,

I have a very strang image issue. I have some image field in my Template (with all code needed to extend CMS) and when I insert content, I tried to attach some image also, and after choosing one (from my computer or from the file store - it is the same) picture, Silverstripe is like acting some upload for picture.

But after it is finished, I see only an empty field (see screen shot below).

Please help!!

http://img365.imageshack.us/img365/113/imageissueqp4.jpg

Avatar
Daminipo

Community Member, 14 Posts

10 July 2008 at 11:05pm

Edited: 10/07/2008 11:07pm

Hi dany_doo!

Some time passed now, but if you still have the issue, the same happend to me couple of hours. :-)

Well, my problem was that I was inconsitent with the name I gave to the ImageField, just check if you have the same name everywhere:

static $has_one = array( 'YourImageName' => 'Image');
function getCMSFields() {$fields->addFieldtoTab(..., new ImageField( 'YourImageName' ));}


Otherwise I would check if you have write permissions to the "assets/Uploads/" Folder. That can do the trick aswell, cause if you use Safari you won't get an ErrorMsg if you have no permissions to that Folder... Firefox helps out here.

Well, that should do the trick. Hopefully I could help you.

Something else thats distrubing me is that the "Choose File" button isn't properly shown in Safari 3...
See Image for Details