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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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