I don’t know if this is a bug, but when you upload to media library, the said media file is not yet accessible during the execution of the hook: bricks/form/custom_action. Should you wish to assign the uploaded image to be a featured image, you have to let the custom_action finish first. Is this correct?
Hi @jayguntor,
thank you for your message. That’s true, files are not yet uploaded to the media library by the time outcustom_action
is executed.
To set an uploaded file as a featured image, you will have to remove the “Save in media library” option and do everything inside a custom action.
Best regards,
M