The type checking for upload fields excluded custom fields by default by not using get_input_type(). That already provides the right type for the custom post fields.
And because files are not provides by an input field during updating a different field, I skip the get_value_save_entry() method, as it has no value, and removes the image completely.
This PR Closes #1317
The type checking for upload fields excluded custom fields by default by not using
get_input_type()
. That already provides the right type for the custom post fields.And because files are not provides by an input field during updating a different field, I skip the
get_value_save_entry()
method, as it has no value, and removes the image completely.