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

file input to API #34

Closed NicoP-S closed 3 years ago

NicoP-S commented 3 years ago

Hello, I am trying to get a form with multiple inputs posted to an API.

There is one file input in my form. My API receives a md5 sum or filename i think. Is it possible to get the file transferd to the api via POST multipart/form-data or something?

[image] => ffc8c6d6a1738d750f7cdfa5f1a12d29

I found the cf7 docs and it says:

How your uploaded files are managed#How your uploaded files are managed After a user uploads a file through your contact form, Contact Form 7 checks to see if: 1.) Any PHP errors have occurred; 2.) the file type and file size are valid; and then, if the check turns out okay, Contact Form 7 moves the uploaded file to a temporary folder. At this point, Contact Form 7 attaches the file to the mail and sends it. After these procedures, Contact Form 7 then removes the file from the temporary folder.

https://contactform7.com/file-uploading-and-attachment/#How-your-uploaded-files-are-managed

If i check the folder it is empty..