You could write a java action that retrieves the inputstream from the core and then check what
inputstream.available()
returns.
You could also check to see if the name has been set:
fileDocument.getValue("Name")
(should be empty if no file has been uploaded)