Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » FileDataObjectManager onAfterWrite not firing when attaching existing files

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 644 Views
  • Futureweb
    Avatar
    Community Member
    232 Posts

    FileDataObjectManager onAfterWrite not firing when attaching existing files Link to this post

    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

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