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.

Archive /

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

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

cms popup image upload workaround


Go to End


3 Posts   2517 Views

Avatar
quicked

Community Member, 32 Posts

12 April 2008 at 6:13am

In the CMS, if you have a complex table listing a bunch of records and you edit these records with the CMSpopup, and you have images in the record, the CMSpopup does not allow you to upload images (some AJAX isssue).

I am looking for suggestions for the best workaround.

Avatar
Blackdog

Community Member, 156 Posts

13 April 2008 at 3:21pm

Edited: 13/04/2008 3:22pm

Try the FileIFrameField instead of the standard Image Upload field which you would use if it was a single image field.

$fields->push( new FileIFrameField( 'YourPhoto', 'Photo') );

Avatar
Blackdog

Community Member, 156 Posts

13 April 2008 at 11:24pm

ok scrap that if you are using 2.2.2 rc2 that method I suggested will break your popup.