Fixed bug where file upload downloads empty file that doesnt exist