Fixed the upload file

File content was empty. Fixed using a java.util.Scan