$.ajaxSetup({
xhr: function() {
var xhr = new window.XMLHttpRequest();
//Upload progress
xhr.upload.addEventListener( 'progress', evt => {
console.log('evt', evt);
if (evt.lengthComputable) {
var percentComplete = evt.loaded / evt.total * 100;
// Do something with upload progress
if(percentComplete > 100) {
percentComplete = 100;
}
$('.progress-bar').css('width', percentComplete+'%');
$('.progress-bar').attr('aria-valuenow', percentComplete);
}
}, false);
return xhr;
}
});
From the next version, the way that CF7 send files to server is Promise (with reject and resolve) instead of $ajax request, so the code used is not valid anymore. I tried in every way to intercept the request and get the progress status of the files uploading, but I have not success. In the end…is there a way to create a progress bar with the last version of the plugin (5.5.6)? And then, how can i reach this?
I hope I was as clear as possible!
Thank you a lot!
Riccardo
Have been using plugin for a while as I can observe after uploading the files sometimes won’t get uploaded at GCS storage bucket rather in local serve as can see through the GCS URL it provides which isn’t provided as earlier and also files in GCS not present, kindly let me know the resolution
]]>I had setup using setup assistant and was working fine ,Now when uploading it’s not uploaded to bucket rather to my webserver location as by default it shows a GCS storage URL.Kindly guide me with this
]]>I am encountering this problem that really drives me nuts and I was wondering if anyone might know the solution.
I am on the latest version of WordPress (5.0.2)
When I try to upload an image file to Media Library, it fails and “http error” message shows up. It happens with both most common formats – png and jpg. The only format that I managed to upload is gif.
I also tried to upload the image by creating a new post using “insert media” function – it failed as well. I tried reducing the file size to few hundreds kilobytes – failed.
Any idea how to fix this? Thank you so much for any advise or tip.
Paul
]]>I have a problem with CF7 – I am trying to add a feature to upload multiple files the same time (in the same field). everything works perfectly fine with one file, but I can’t find a way to make it.
I’ve edited file.php to allow multiple files uploading, but still only one file is delivered to email.
Can you help me? Here’s the link to the website https://autoskup24h.pl/
Thanks in advance!
]]>I logged into my site as editor and was unable to upload images for posts. Then I changed it to allow and was able to upload files. I hope I did the right thing to allow.
Now I see in my firewall logs
20/Apr/15 07:58:52 #4444814 upload – 94.153.8.126 POST /wp-admin/admin-ajax.php – Allowing file upload – [revslider.zip, 36,739 bytes]
There were 3 attempts in total, diff IP.
Was this blocked or not? Since no rule showed I was worried. Fortunately I do not see and Rev Slider folder or zip in upload folder so far.
How/Why is the log saying – “Allowing file upload”?
I am a bit worried and confused. Do clarify this for me.
https://www.ads-software.com/plugins/ninjafirewall/
]]>