You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// validate the data in header file to avoid the errors when network issue occurs
if ( (int)($partialResource->chunkIndex) !== (int)$chunkIndex - 1 ) {
return Responser::returnResult($result);
}
就关于源码里面这段代码的情况,没太能理解这个判断的意思。所以就是实例化类中partialResource里面的chunkIndex和前端接受的index不一致的时候,是不需要报错的吗?
The text was updated successfully, but these errors were encountered:
// validate the data in header file to avoid the errors when network issue occurs // 验证header文件中的数据以防止网络问题发生时报错
这个应该是断线续传时防止出错的,网络不好时可能会发生上传成功但返回失败,此时实际已经上传成功,当网络恢复时,浏览器又会自动重传这部分内容,如果不阻止会出现问题,正常情况下不会进到这里。
The text was updated successfully, but these errors were encountered: