fixing upload file issue