{"record":{"id":"45d7d9bca1bf8f6f","repo":"AlistGo/alist","slug":"invalid-file-size","errorCode":null,"errorMessage":"invalid file size","messagePattern":"invalid file size","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/doubao_new/driver.go","lineNumber":222,"sourceCode":"\t}\n\ttoken := obj.GetID()\n\tif token == \"\" {\n\t\tif o, ok := obj.(*Object); ok {\n\t\t\ttoken = o.ObjToken\n\t\t}\n\t}\n\tif token == \"\" {\n\t\treturn errors.New(\"missing object token\")\n\t}\n\treturn d.removeObj(ctx, []string{token})\n}\n\nfunc (d *DoubaoNew) Put(ctx context.Context, dstDir model.Obj, file model.FileStreamer, up driver.UpdateProgress) (model.Obj, error) {\n\tif file == nil {\n\t\treturn nil, errors.New(\"nil file\")\n\t}\n\tif file.GetSize() <= 0 {\n\t\treturn nil, errors.New(\"invalid file size\")\n\t}\n\n\tuploadPrep, err := d.prepareUpload(ctx, file.GetName(), file.GetSize(), dstDir.GetID())\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif uploadPrep.BlockSize <= 0 {\n\t\treturn nil, errors.New(\"invalid block size from prepare\")\n\t}\n\n\ttmpFile, err := file.CacheFullInTempFile()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer tmpFile.Close()\n\n\tblockSize := uploadPrep.BlockSize\n\ttotalSize := file.GetSize()","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/doubao_new/driver.go#L204-L240","documentation":"Error \"invalid file size\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/doubao_new/driver.go:222 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the storage configuration and the provider's service status, fix the indicated cause, and retry the operation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}