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
'{"code":400,"message":"Failed to load the submitted data due to invalid formatting.","data":{"avatar":{"code":"validation_unknown_filenames","message":"The field contains unknown filenames."}}}
'
The text was updated successfully, but these errors were encountered:
internalstaticasyncTask<T?>HttpPatchAsync<T>(thisPocketBasepocketBase,stringurl,Titem)whereT:ItemBase{varbody=JsonSerializer.Deserialize<Dictionary<string,object>>(JsonSerializer.Serialize(item));varfiles=item.RelatedFiles.Where(f =>f!=null&&f.HasChanges)?.Select(f =>f!.GetSdkFileToUpload()).Where(f =>f!=null).Select(f =>f!)?.ToList();if(files?.Any()??false){awaitpocketBase.SendAsync<T>(url,HttpMethod.Patch,files:files);}// remove FieldFileBase field for fix The field contains unknown filenames.foreach(varpropertyintypeof(T).GetProperties(BindingFlags.Public|BindingFlags.NonPublic|BindingFlags.Instance|BindingFlags.Static).Where(prop =>prop.PropertyType.IsSubclassOf(typeof(FieldFileBase)))){varjsonPropertyNameAttribute=property.GetCustomAttribute<JsonPropertyNameAttribute>();if(jsonPropertyNameAttributeis not null){body.Remove(jsonPropertyNameAttribute.Name);}}varresult=awaitpocketBase.SendAsync<T>(url,HttpMethod.Patch,body:body);returnresult;}
'{"code":400,"message":"Failed to load the submitted data due to invalid formatting.","data":{"avatar":{"code":"validation_unknown_filenames","message":"The field contains unknown filenames."}}}
'
The text was updated successfully, but these errors were encountered: