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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

FileDataObjectManager onAfterWrite not firing when attaching existing files


Reply

684 Views

Avatar
Futureweb

6 November 2012 at 4:31pm (Last edited: 7 November 2012 1:59am), Community Member, 233 Posts

Hi,
I've got a FileDataObjectManager. The dataobject it creates for each file uploaded has an onAfterWrite() function in it, which sorts out the file name

It runs fine when uploading new files, but if you move to the 'choose existing' tab, and import files that already exist, the onAfterWrite() function isn't getting called.

Any ideas how I could do this?

Cheers

Jon