Fix an error when you uploaded an file