Reset fileInput and only act if we have file

Reset fileInput back to an empty value after upload (success or fail)
Only if value isn't empty action the upload