Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Feature: ability to serve a temporary static PDF #36

@shankie-codes

Description

@shankie-codes

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions