Possible bug with UploadFileAsync
sven5 opened this issue · comments
Hi,
Perhaps there is a bug in SanityClient.cs line 194:
var uri = $"assets/images/{WebUtility.UrlEncode(_options.Dataset)}{(query.Count > 0 ? "?" + query.Aggregate((c, n) => c + "&" + n) : "")}";
Should read:
var uri = $"assets/files/{WebUtilit ...
Seems like copy&paste error 😄
Otherwise file upload won't work correctly.
I'm just struggling uploading a PDF file. Sanity response with error: "Invalid image type".
Thanks
Sven