Upgrade upload/download binary content recipes to use latest Fable Remoting capabilities.
One more thing about the serving file recipe, there is this snippet
open System // We need this for the `Byte` type
type IFileAPI =
{ //...other routes
download : unit -> Async<Byte[]> }
Can be simplified to
type IFileAPI =
{ //...other routes
download : unit -> Async<byte[]> }
The type abbreviation byte doesn't need a namespace.
Unfortunately, there is also missing example how to handle uploading of file on the server (saturn) side.
Invalid link with text send the file from the client to the server in upload-file-from-client.md ("Upload file from the client")
It would be great to have complete example there.
@Otagit I can see that the examples in the docs link to resources that can be followed, either minimal or standard and can be adapted to post files to the server.
I will close this but feel free to open another issue if you would like this to be more specific please