Empty upload field is no longer empty after record duplication

Empty upload field is no longer empty after record duplication

I check whether or not an upload field in my form is empty with the following code:

if ((searchProfile.File_Upload  !=  null)  &&  (searchProfile.File_Upload  !=  ""))

This works fine if I created the record from scratch.

If I duplicate a record with an empty upload field in it, the code above no longer works. Checking if the field is empty with searchProfile.File_Upload.isEmpty() is not supported. Adding the code input.File_Upload = "" in the On Add / On Load event does not work either.

Please advise.

Filip