mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.459.2
This commit is contained in:
@@ -276,7 +276,7 @@ namespace LukeHagar.PlexAPI.SDK.Utils
|
||||
|
||||
byte[]? content = null;
|
||||
string fileName = "";
|
||||
string fieldName = "";
|
||||
string fieldName = metadata.Name;
|
||||
|
||||
foreach (var fileProp in fileProps)
|
||||
{
|
||||
@@ -297,12 +297,11 @@ namespace LukeHagar.PlexAPI.SDK.Utils
|
||||
}
|
||||
else
|
||||
{
|
||||
fieldName = fileMetadata.Name ?? fileProp.Name;
|
||||
fileName = fileProp.GetValue(value)?.ToString() ?? "";
|
||||
}
|
||||
}
|
||||
|
||||
if (fieldName == "" || fileName == "" || content == null)
|
||||
if (fileName == "" || content == null)
|
||||
{
|
||||
throw new Exception("Invalid multipart/form-data file");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user