BETA: bug fix for file uploaded