docs icon indicating copy to clipboard operation
docs copied to clipboard

Upgrade upload/download binary content recipes to use latest Fable Remoting capabilities.

Open isaacabraham opened this issue 4 years ago • 2 comments

See here.

isaacabraham avatar Aug 09 '21 13:08 isaacabraham

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.

Zaid-Ajaj avatar Aug 09 '21 13:08 Zaid-Ajaj

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 avatar Jul 26 '22 12:07 OtagIt

@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

martinbryant avatar Aug 04 '23 14:08 martinbryant