Glen Don Mongaya
Forum Replies Created
-
This option “Send Attachment as links?” will display links in email instead of attaching them, this is helpful if you want to accept large files since most of email platform have size restriction or limitation.
In orger to get or display the link you should add the upload filed name inside the body.
See here for more details – https://www.youtube.com/watch?v=DvuvmzIImYo&t=232s
Thanks.
Hey @tjlstw ,
Can you please share a screenshot of your Contact -> Drag & Drop Upload settings?
And also a screenshot of you Form & Mail settings under Contact -> Edit Contact -> Form & Email tab settings.
Thanks.
Hello @service247minsk ,
Sorry, it took a week to reply this thread.
Can you please explain the issue on your end and also provide a screenshot or vidoes?
Thanks.
Hello @marinalan ,
Create a new topic here – https://ww.wp.xz.cn/support/plugin/drag-and-drop-multiple-file-upload-contact-form-7/#new-topic-0 so we can identify the issue.
First, you need to include the script of contact form 7 so that my plugin can enque the js file.
Also, maybe there’s a wp_dequeue script in your functions.php file, can you please check it?
Thanks,
GlenHello @darylaurito ,
I think you already open a support in email, will reply you there.
Thanks,
GlenCan you contact me through my email [email protected] for further testing and I would like to request for temporary admin access if possible.
Maybe the print_r caused the error not to show the validation message.
Just remove the print_r.
Also, I tried your code in my local and it’s working correctly see here – https://snipboard.io/NozK3x.jpg
Hello @navasahmed ,
Can you print_r the $files & $type and send me the screenshot of the result?
Thanks.
Hello @omarsa89 ,
That would be possible but with a little custom Javascript code.
Can you open support here – https://www.codedropz.com/support/
Thanks.
Hi @halfdes , sorry.
Replied you here – https://ww.wp.xz.cn/support/topic/automatic-delete-of-uploaded-file-not-working/
My apology @halfdes Did you open a support link from my last comment maybe I missed it.
- This reply was modified 3 years, 10 months ago by Glen Don Mongaya.
Forum: Plugins
In reply to: [Drag and Drop Multiple File Upload for WooCommerce] Update product quantityHello @navasahmed ,
You could try this filter.
add_filter( 'wpcf7_validate_mfile', 'cf7_custom_file_validation', 10, 2 ); add_filter( 'wpcf7_validate_mfile*', 'cf7_custom_file_validation', 10, 2 ); function cf7_custom_file_validation ($result, $tag) { if ($tag->name === 'file-123') { $files = $_POST[ $tag->name ][0]; // this could be an array $type = wp_check_filetype( $files ); $contentType = $type['type']; if ($contentType !== 'application/docx' && $contentType !== 'application/pdf' && $contentType !== 'application/doc'&& $contentType !== 'application/rtf') { $result->invalidate($tag, 'This file type is not supported'); } } return $result; }Hey @larsactionhero ,
Yes, I will update my plugin to use plain javascript instead of relying on Jquery library.
Thanks for your concern.
Glen