You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 7, 2020. It is now read-only.
I'm making something within a Saleforce.com APEX page where I had to use their own AJAX client, where responses are always parsed as text, rather than giving me the option to parse the response as a blob, as I'd normally do with SuperAgent. As a result, I need electron-render-service to send back a temporary URL to the client where they can then perform a simple get to the resource.
I'm working on a PR where the render service saves a file to public/download-[timestamp].pdf. It then returns the URL of the file to the client as JSON. Once the file has been accessed, it is deleted.
I've got it working in the narrow use-case for my client, but I was thinking of turning it into a PR for the project. I've designed it so that there's anther query parameter sendBinaryOrURL which you can set to binary or url, defaulting to binary if you don't provide the parameter (replicating the current flow).
Would you be interested in accepting a PR for this?
I'm making something within a Saleforce.com APEX page where I had to use their own AJAX client, where responses are always parsed as text, rather than giving me the option to parse the response as a blob, as I'd normally do with SuperAgent. As a result, I need
electron-render-serviceto send back a temporary URL to the client where they can then perform a simple get to the resource.I'm working on a PR where the render service saves a file to
public/download-[timestamp].pdf. It then returns the URL of the file to the client as JSON. Once the file has been accessed, it is deleted.I've got it working in the narrow use-case for my client, but I was thinking of turning it into a PR for the project. I've designed it so that there's anther query parameter
sendBinaryOrURLwhich you can set tobinaryorurl, defaulting tobinaryif you don't provide the parameter (replicating the current flow).Would you be interested in accepting a PR for this?