Open mexn opened 6 years ago
@mexn Thanks for using Caldera Forms. It would be very helpful if you could attatch a screenshot of the settings for your field. It's hard to test these issues since any combination of those 3 checkboxes (Add To Media Library, etc.) creates a different behaviour.
Oops, didn't mean to close. Probably is a bug, just need to know which of the combinations I need to test with.
I just created a small testing form with the file input and a submit button and only "Attach to Mailer" activated.
What Version Of Caldera Forms, WordPress and PHP Are You Using?
WordPress Version: 4.8.2PHP Version: 7.1.8MySQL Version: 5.7.18Caldera Forms Version: 1.5.6.2WP_DEBUG:
Does Your Issue Persist When You Disable All Other Plugins and Switch To The Default Theme?
Yes
What Is The Unexpected Behaviour?
Activating "Scroll To Top On Submit" breaks attaching uploaded files to emails.
What PHP Errors Have You Logged While Reproducing This Bug?
None. Debugging showed, that this check
if( in_array( Caldera_Forms_Field_Util::get_type( $field ), $form ) ){ return ! empty( $field[ 'config' ][ 'attach'] ); }
in classes/files.phpshould_attach
method fails, if the setting is on.