Closed FroggieFrog closed 1 year ago
I don't have an environment where I can test this library in a MAUI app at the moment. Would you be able to help find a solution?
A possible solution is to not use Flurl.Http
and Newtonsoft.Json
and do it all manually. This would actually be kind of an entire rewrite of this lib.
I'm not sure if this is a thing you would like to do.
Yeah, that would be a lot of work. How about re-writing only the Upload method manually? Can you see if it works?
Did you try both overloads from UploadAsync
? There's one that uses a byte array and one that uses a file path.
@FroggieFrog Hi! You can try new (pre) version of Flurl: https://www.nuget.org/packages/Flurl.Http/4.0.0-pre3#dependencies-body-tab It doesn't depend on Newtonsoft and depends on .net 6
I ran into an issue with this library while developing a MAUI App. When uploading a file via
SYNO.FileStation.Upload
there is always an exception (Object is already disposed
). The origin of this exception isFlurl.Http
. A new prerelease of this lib seems to be compatible, but replacesNewtonsoft.Json
withSystem.Text.Json
which causes some issues with this lib. This lib targetsnetstandard2.0
so in theory it should be compatible with MAUI, but is not because of a dependency (Flurl
).Are there plans to make this lib compatible with MAUI?