开发者 |
glenwpcoder
yordansoares |
---|---|
更新时间 | 2024年11月13日 21:15 |
捐献地址: | 去捐款 |
PHP版本: | 5.2.4 及以上 |
WordPress版本: | 6.7 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/drag-and-drop-multiple-file-upload-contact-form-7.zip
directory, or install the plugin through the WordPress plugins screen directly.For any bug reports go to Support page.
To limit file size in multiple file upload
field generator under Contact Form 7, there's a field File size limit (bytes)
.
You can also manually add limit parameter in existing [mfile] tag.
Example: [mfile upload-file-433 limit:20971520] - This limit the user to upload upto 20MB only.
Please take note it should be Bytes
you may use any converter just Google (MB to Bytes converter) default of this plugin is 5MB(5242880 Bytes).
You can limit the number of files in your file upload by adding this parameter max-file:3
to your shortcode :
Example: [mfile upload-file-344 max-file:3] - this option will limit the user to upload only 3 files.
You can add or change file types in cf7 Form-tag Generator Options by adding jpeg|png|jpg|gif
in Acceptable file types field
.
Example : [mfile upload-file-433 filetypes:jpeg|png|jpg|gif]
You can change text Drag & Drop Files Here or Browse Files
text in Wordpress Admin menu under Contact
> Drag & Drop Upload
.
Some email servers have limitations on file attachment sizes (e.g., Google allows a maximum of 20-25 MB). Attaching large files to emails can be problematic. Consider using this option to display links in the email instead of attaching the files.
Go to WP Admin Contact -> Drag & Drop Upload
settings then check "Send Attachment as links?" option.
To manage mail template, go to Contact Forms edit specific form and Select Mail
tab. In Message Body
add generated code from [mfile]. ( Example Below )
Message Body : [your-message]
File Links 1 : [upload-file-754]
File Links2 : [upload-file-755]
Note : No need to add in File Attachments
field.
See Video Demonstration
[mfile]
shortcode.[upload-file-111] [upload-file-222]
dnd_cf7_data_options
to manualy change the browse text and label text.jpg|png|php%
dnd_codedropz_upload_delete
function, that will execute any POST remotely.dnd-upload-cf7.js
attach the function to window so it can be available to call.Drag & Drop
text on mobile devices.wpcf7_posted_data
from CF7 to get the full link of the file.Send As Attachment
is checked )remove file still send sends with the form
(https://wordpress.org/support/topic/file-uploading-is-working-incorrect/)LocalStorage
instead of Global variable.wp_dndcf7_uploads
to separate files from wpcf7_uploads ( When option 'Send Attachment as links?' is check ).