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 →
User Avatar
1.4.7 is a Security Fix Please update your plugin to the latest version This plugin provides a thumbnail area in the Your Profile section, where users can upload & crop new images in an overlay and upon cropping the image, the new image will be saved and stored. This gives users with any role the chance to easily upload an image and view their current thumbnail, all in one go. In Discussion, the default image associated with the user will be replaced with the user avatar image uploaded and this will then be the image shown in comments and also in People Lists (see below). This plugin was developed for People Lists and this plugin provides a rich text editor on the profile page for easy modifications of specific user profile information that can be displayed on any page using the [people-lists list=example-list] shortcode. Admins will also be able to add custom fields to the Your Profile section on WordPress and these fields can be displayed on any page using the People Lists template (which can be styled using HTML) that provides codes for every field that is desired to be displayed. There is a specific code in People Lists that hooks this thumbnail into your lists template display, so grab People Lists plugin as well!! Take a look at the screenshots! This plugin was developed using PHP 5.1 and hasn’t been tested on other version of php But if you are able to run upload picture and set them as featured image then you also shouldn’t be have problems using this plugin.