bugs in file upload fixed