stumur
Forum Replies Created
-
Oh, sorry mate, yes, I think resolved.
Omg, I never knew that was there! THANK YOU!
Thank you for clarifying this. I’ve conducted quite a few tests now – it is convenient to delete entries not needed anymore in the WP back-end inside the plugin, which is great, but I notice when I go into my server files -> forminator -> uploads, that deleting those back-end entries only deletes whatever files were attached to the form – it still leaves many untidy cryptically-named folders, that contain 50kb css files, index files and also now-empty uploads folders – are these three things all supposed to all be eradicated as well with that WP backend command, to properly clean up un-needed server leftovers? Could you please let me know if I’m not quite doing something right, and not deleting 100% correctly, or if thorough deletion will be addressed in a coming update?
Thank you, Stu- This reply was modified 1 month, 2 weeks ago by stumur.
Sorry to bother you again:
I’m finding my Forminator test form data is not so easy to delete and I’m running up a bit of bloat on the server. I can’t find either of these:
Forminator → Edit Form → Settings → Privacy → Submission Files → Choose Delete.
Forminator → Edit Form → Settings → Privacy → Submissions → Set custom number of days, weeks, months or years.
Are you certain these are the correct paths? I’m on the latest version. Thank you.- This reply was modified 1 month, 2 weeks ago by stumur.
Thank you mate.. I got it sorted with php and JS.. good enough for now.
Thank you.Thank you.
Omg.. removing my HTML-formatted code from the HTML template and adding it into the plain template solved everything. Thank you mate.. VERY much appreciated.
OMG, that’s fabulous! Thanks Ali – I wasted a whole week on this danged thing! I should’ve just asked you! 😀
Fabulous.. thank you.
Oh, sorry.. of course!
function megaforms_client_file_validation() {
?>
<script>
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('.mf-upload').forEach(function(input) {
input.addEventListener('change', function () {
var file = this.files[0];
if (!file) return;
var imageSizeLimit = 3 * 1024 * 1024; // 3MB
var audioSizeLimit = 12 * 1024 * 1024; // 12MB
var isAudio = file.type.startsWith('audio/');
var maxSize = isAudio ? audioSizeLimit : imageSizeLimit;
if (file.size > maxSize) {
var limitMB = isAudio ? '12MB' : '3MB';
var errorEl = this.parentNode.querySelector('.mf-file-error');
if (!errorEl) {
errorEl = document.createElement('span');
errorEl.className = 'mf-file-error';
errorEl.style.color = 'red';
errorEl.style.display = 'block';
errorEl.style.marginTop = '5px';
this.parentNode.appendChild(errorEl);
}
errorEl.textContent = 'File too large! Maximum allowed size is ' + limitMB + '.';
this.value = '';
} else {
var errorEl = this.parentNode.querySelector('.mf-file-error');
if (errorEl) errorEl.textContent = '';
}
});
});
});
</script>
<?php
}
add_action('wp_footer', 'megaforms_client_file_validation');Ok, I’ll remove my JS solution and use yours.
Oh.. wait – the alpha/numeric character counters in the boxes are wildly inaccurate. I have one set for 1,500 chars.. It throws an error if it’s any more than about 1,150. And one box I have set to 10,000 chars has a thrombo if I load up more than say 8,750. It frustrates users if they’re well under the character limit and still get unpredictable errors. Any thoughts on how to fix this one mate?
Whoops.. fixed it with some JS, sorry for the bother.
Thank you, I’ll email them to you. I still don’t know how to get the info from the logs in the MegaForms backend though – is that where you mean? I just get a list of log titles, but nothing seems clickable?
- This reply was modified 1 month, 3 weeks ago by stumur.
Not yet mate.. I work all day every day on it as it’s a cornerstone to how my site needs to run. I got rid of a whole lot of questionable php code which got the load times down to about 20 seconds instead of 2 minutes. And I turned off time trap and recaptcha, which both helped delivery too. Now that the submission times are not so bad, I’m moving on to the images that aren’t attaching to the post. I don’t understand how to get the logs out of the plug-in for you, as the ones in mine don’t seem to be clickable. And how do I attach the files here? Sorry mate – I’m not too flash at this!