This is what I have now:
- User upload a file through a form.
- Gravity Forms save the file in
wp-content/uploads/gravity_forms. -
gform_after_submissionto access the uploaded file and then sent it to a third-party API. - I use the
unlink()to delete the file fromwp-content/uploads/gravity_forms.
Is there a way to avoid saving the file in wp-content/uploads/gravity_forms and e.g. use $_FILES variable to retrieve the file and then sent it to the API?