Attach To Mailer – Select this option if you wish to attach the file to the mailer.
- This option, if it is the only option checked, will not cause files to be saved on your server.
- Advanced file fields have a way better interface than basic file fields for this.
- The magic tag for this field (or summary magic tag) will show a link to the file.
- Checking this option is the easiest way to have files be saved to your server.
What Happens With Different Settings
- If you select attach to mailer and not add to media library, then the file is saved to the server, attached to the email and then deleted from the server.
- If you select attach to mailer and add to media library, then the file is saved to the server, attached to the email and added to the media library.
- If you select add to media library, then the file is saved to the server, attach to the email and added to the media library.
How To Save Caldera Forms File Fields Without Adding To Media Library
If you want to have files uploaded to your forms be saved on your server, the easy way to do it is to uncheck the Add To Media Library option. However, you can also select the Attach To Mailer option and remove the hooks that delete the files, as shown below:
How To Change The Path For The Uploaded Files
By default, when uploading files that will be saved, WordPress’ default media library file path will be used. You can change the location within the uploads directory using the caldera_forms_upload_directory filter.