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

1: add file path adding, and form data format #30

Closed Rohlinsky closed 3 years ago

kennym commented 3 years ago

Can you describe what this PR does?

Rohlinsky commented 3 years ago

Sure, 194 - 199: Just comfort view of attributes input. 456 - 462: Go over the fields to find witch is file, not text, change default value of md5 hash to path to file, and mark it with '@', before value. (example: 8b1a9953c4611296a827abf8c47804d7 to @"/path/to/file.d) 577, 637: Auto fix of beautifier. 651 - 655: Check request type, if this is default type 'params', just send it throw 'form-data', other (json, xml) send default 'wp_remote_post' method. 685 - 734: Function which provide possibility to send file and other types of fields through 'form-data', with link of author above, little bit modified to comfort catch all files in inputs, and append it to request body.

kennym commented 3 years ago

looking good! Once that variable is fixed I'll merge this

Rohlinsky commented 3 years ago

Can you please mark, witch variable I should fix, and I fix it.