Fix lỗi upload and resize.