Fix bug that file couldn't be uploaded within ajax