Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’m not sure multisite has its own media library so where you end up saving the images is a bit up in the air. Probably not directly answering the question, but it’s something to make note of for sure.

    Out of curiosity, is it saving as expected in single site?

    Thread Starter andreyfilippov

    (@andreyfilippov)

    The problem is actually not multisiting related. Just used the situation as an example.

    So, yeah, the problem exists in a single site too. I think it’s related to the attachment id, which is not used in the callback, though used in CMB2 object.

    P. S. Using “cmb2_override_{$a[‘field_id’]}_meta_value” filter for my needs ??

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If I recall right, Justin passes in the attachment IDs as an array index.

    The images aren’t coming up for me at the moment, but if any of the passed in values are arrays, I’d check the indexes on them and see if those match

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sanitisation file field’ is closed to new replies.