kennym / cf7-to-api

LOOKING FOR MAINTAINER. Wordpress plugin to transmit contact form 7 entries to remote API using POST or GET
https://wordpress.org/plugins/cf7-to-api-basic-auth/
52 stars 30 forks source link

Add file input as base64 string to $record #35

Closed NicoP-S closed 3 years ago

NicoP-S commented 3 years ago

Like I said in #34 it is not possible to upload files to the api.

Best way would to add multipart/form-data as content-type, because of the overhead of base64 encoding and decoding.

I hope this way (base64 encoded) is also ok.

airplanenoise commented 3 years ago

that's cool - would that work for a pdf -> blob?

NicoP-S commented 3 years ago

@airplanenoise PDF should also work. Would be transfered as a base64 encoded string and must be decoded on the server (Receiver) side

kennym commented 3 years ago

LGTM