Hi! I can see what you’re worried about. My plugin uses the default ACF upload which can be suboptimal.
Unfortunately there currently isn’t a way to avoid the uploading from ACF fields. ACF doesn’t provide a way and because my plugin fully relies on ACF there is no way. I’ve been thinking of breaking out some of the functionality to gain more control over the upload process which would also make your use case possible.
I’ll keep this in mind for future versions, thank you!
Thanks for the reply. I’ve been looking for a solution by making a custom acf file field and sending that.
Is there a way to allow the default acf_form parameters?
https://www.advancedcustomfields.com/resources/acf_form/
I want to add this attribute to the form but it doesn’t seem to change.
‘form_attributes’ => array(
‘enctype’ => ‘multipart/form-data’,
),
Thanks for any input!
My plugin isn’t 1-to-1 compatible with the acf_form arguments (it doesn’t actually use acf_form at all!). There is actually an undocumented filter for changing the attributes of the form called af/form/attributes. You can use it like this:
function change_form_enctype( $atts ) {
$atts['enctype'] = ‘multipart/form-data’;
return $atts;
}
add_filter( 'af/form/attributes/key=FORM_KEY', 'change_form_enctype' );
Remember to replace FORM_KEY with your form key! 🙂
Hope this helps!