Store file uploads for Contact Form 7
By default, Contact Form 7 dose not keep data it sends trough it’s contact forms. While plugins like Flamingo save that data, uploaded files are not added to Media Library. This plugin will save uploaded files to Media Library before email is sent by CF7. This plugin will raise an event with the the full file path & name. Subscribe to nmr_create_attachment_file_name filter to get and/or update data before attachment is added to media library. // The filter callback function. function example_callback( $file_name ) { // (maybe) modify $file_name. return $file_name; } add_filter( 'nmr_create_attachment_file_name', 'example_callback', 10, 1 ); Subscribe to nmr_before_insert_attachment filter to be able to change attachment attributes: caption and description are ‘post_excerpt’ and ‘post_content’. For other attributes, check documentation for wp_insert_attachment. // The filter callback function. function before_insert_attachment_callback( $attachment ) { // (maybe) modify $attachment array. return $attachment; } add_filter( 'nmr_before_insert_attachment', 'before_insert_attachment_callback', 10, 1 ); Optionally, subscribe to nmr_should_skip_save_attachment_to_media_library filter to be able to skip saving the attachment to media library: return true to skip, false is the default behaviour that saves the attachment to media library. Filter nmr_before_insert_attachment will not be called if skip was true. // The filter callback function. function skip_media_library_callback( $skip_save_to_media_library ) { // return true to skip saving to Media Library, false to save. return true; } add_filter( 'nmr_should_skip_save_attachment_to_media_library', 'skip_media_library_callback', 10, 1 ); This plugin will send the final attachment id if you are interested in getting other details, like attachment url. Listen to nmr_create_attachment_id_generated action. // The action callback function. function example_callback_id_generated( $attachment_id ) { // (maybe) do something with the args. $url = wp_get_attachment_url( $attachment_id ); } add_action( 'nmr_create_attachment_id_generated', 'example_callback_id_generated', 10, 1 ); Docs & Support Check the support forum on WordPress.org. If you can’t locate any topics that pertain to your particular issue, post a new topic for it. Store file uploads for Contact Form 7 Needs Your Support It is hard to continue development and support for this free plugin without contributions from users like you. If you enjoy using -Store file uploads for Contact Form 7- and find it useful, please consider making a donation. Your donation will help encourage and support the plugin’s continued development and better user support. Privacy Notices With the default configuration, this plugin, in itself, does not: track users by stealth; write any user personal data to the database; send any data to external servers; use cookies. It will, however store uploaded files trough Contact Form 7 in WordPress Media Library. Make sure your website users are aware of this fact!!! Pro Version Need more? The Pro version adds 13 features: Per-form control — choose which forms save files, set custom folder and rename pattern per form Auto-rename — rename files using patterns like {name}-{date}.{ext} from other CF7 fields Unique filenames — automatically avoid overwriting files with the same name Custom upload folder — save files to a specific subfolder per form File URL in email — replace [file] mail tag with a clickable link instead of an attachment Skip-mail compatibility — save files even when CF7’s skip_mail: on is set Upload log — admin screen listing every uploaded file with form, date, size, and download link Private files — store files outside the Media Library with access protection Admin notification — receive an email with file link on every upload Flamingo integration — link uploaded files to Flamingo inbound message entries Auto-delete — remove uploads older than a configurable number of days Image resize / compress — resize and compress images on upload Duplicate detection — skip saving if the same file was already uploaded (MD5 check) Get Pro →
Top keywords
- attachment24×3.72%
- file13×2.02%
- media13×2.02%
- library12×1.86%
- media library12×1.86%
- files11×1.71%
- filter10×1.55%
- skip10×1.55%
- callback9×1.40%
- save9×1.40%
- function8×1.24%
- form7×1.09%
Iptanus File Upload
With this plugin you or other users can upload files to your site from any page, post or sidebar easily and securely. Simply put the shortcode [wordpress_file_upload] to the contents of any WordPress page / post or add the plugin’s widget in any sidebar and you will be able to upload files to any directory inside wp-contents of your WordPress site. You can add custom fields to submit additional data together with the uploaded file. You can use it to capture screenshots or video from your webcam and upload it to the website (for browsers that support this feature). You can even use it as a simple contact (or any other type of) form to submit data without including a file. The plugin displays the list of uploaded files in a separate top-level menu in Dashboard and includes a file browser to access and manage the uploaded files (only for admins currently). Several filters and actions before and after file upload enable extension of its capabilities. The characteristics of the plugin are: It uses the latest HTML5 technology, however it will also work with old browsers and mobile phones. It provides a nice upload form using Material UI React components. It is compliant with the General Data Protection Regulation (GDPR) of the European Union. It can be added in posts, pages or sidebars (as a widget). It can capture and upload screenshots or video from the device’s camera. It supports additional form fields (like checkboxes, text fields, email fields, dropdown lists etc). It can be used as a simple contact form to submit data (a selection of file can be optional). It produces notification messages and e-mails. It supports selection of destination folder from a list of subfolders. Upload progress can be monitored with a progress bar. Upload process can be cancelled at any time. It supports redirection to another url after successful upload. There can be more than one instances of the shortcode in the same page or post. Uploaded files can be added to Media or be attached to the current page. Uploaded files can be saved to an FTP location (ftp and sftp protocols supported). It is highly customizable with many (more than 50) options. It supports filters and actions before and after file upload. It contains a visual editor for customizing the plugin easily without any knowledge of shortcodes or programming It supports logging of upload events or management of files, which can be viewed by admins through the Dashboard. It includes an Uploaded Files top-level menu item in the Dashboard, from where admins can view the uploaded files. It includes a file browser in the Dashboard, from where admins can manage the files. It supports multilingual characters and localization. The plugin is translated in the following languages: Portuguese, kindly provided by Rui Alao German French, kindly provided by Thomas Bastide of http://www.omicronn.fr/ and improved by other contributors Serbian, kindly provided by Andrijana Nikolic of http://webhostinggeeks.com/ Dutch, kindly provided by Ruben Heynderycx Chinese, kindly provided by Yingjun Li Spanish, kindly provided by Marton Italian, kindly provided by Enrico Marcolini https://www.marcuz.it/ Polish Swedish, kindly provided by Leif Persson Persian, kindly provided by Shahriyar Modami http://chabokgroup.com Greek Please note that the plugin contains minified CSS and Javascript files in order to reduce its size and speed-up performance. The unminified version of these files can be found here. The source code of the compiled React files of the plugin can be found here. Please also note that old desktop browsers or mobile browsers may not support all of the above functionalities. In order to get full functionality use the latest versions browsers, supporting HTML5, AJAX and CSS3. For additional features, such as multiple file upload, very large file upload, drag and drop of files, captcha, detailed upload progress bars, list of uploaded files, image gallery and custom css please consider Iptanus File Upload Professional. Please visit the Other Notes section for customization options of this plugin. Plugin Customization Options Please visit the support page of the plugin for detailed description of customization options. Requirements The plugin requires to have Javascript enabled in your browser. For Internet Explorer you also need to have Active-X enabled. Please note that old desktop browsers or mobile browsers may not support all of the plugin’s features. In order to get full functionality use the latest versions of browsers, supporting HTML5, AJAX and CSS3. External services The plugin connects to Iptanus servers to retrieve information about the latest version of the plugin. It does not send any user data. It just receives the latest version of the plugin. The service is provided by the owner of the plugin, Iptanus. Terms of Service. Privacy Policy.