Fix send file api bug