fix bug:delete file on upload fail