Is there a Javascript/PHP callback for the managed_file form element that is invoked when the file is successfully uploaded? (I mean when the "Upload" button is clicked, not when the form is submitted.)
$form['video'] = array(
'#title' => t('Video'),
'#type' => 'managed_file',
'#default_value' => variable_get('image_example_image_fid', ''),
'#upload_location' => 'public://temp_managed/',
);
I have tried:
- #file_value_callbacks, but this seems to be a preprocess
- #process, but it also seems to happen during the page load