Skip to content

Uploading file with file name #4069

Discussion options

You must be logged in to vote

Right now, you could use a custom header and read it via https://docs.postgrest.org/en/v12/references/transactions.html#request-headers-cookies-and-jwt-claims.

In theory, if we could mix an unnamed bytea parameter with named parameters, which would then be passed on the query string, that could be quite flexible. So I imagine doing something like POST /files?name=xxxx - and then the raw bytea body. But we don't have that, yet.

RIght now, you could fake something like it in a reverse proxy: For example have an endpoint /files/xxx, where a POST to it would take the xxx part and put it in the custom header mentioned above.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@jenstroeger
Comment options

@steve-chavez
Comment options

@steve-chavez
Comment options

@steve-chavez
Comment options

@jenstroeger
Comment options

Answer selected by jenstroeger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants