Check if the file is associated with a userform submission Save the result in the database as a tri-state for two reasons: a) performance - prevent the need for an extra DB query b) if in the future the UserForm submission is deleted and the uploaded file is not (file is orphaned), then it is still recorded that the file was originally uploaded from a userform submission
Signature
public function updateTrackedFormUpload(bool&
$value )