What errors are you getting??
It says “Please upload a zip file”
hmm I’ve seen this issue before it has to do with the type of zip file. I’ll look into it and let you know what I find.
Hi. I’m having the same exact issue.
Any news on this? I have multisites and one of them has a TON of documents that I would love to not have to upload one at the time 🙂
Thanks!
Yes, to answer your question mDocs doesn’t handle 7z and rar files you must use a program that creates zip file compression. Winzip works or even windows default zip application.
They are not being saved as anything but .zip file format. I just tried using the windows one and I still get the same error message.
i’ve tested winrar and 7zip applications both return errors when uploaded. My guess is that the compression is different and the php function I am calling cannot handle that compression type.
Try Windows native zip application is if that works?
I just tried that. Same error message.
try editting this file mdocs-batch-upload.php change lines 11 – 18 from this:
if(isset($_FILES['mdocs-batch']) && strpos($_FILES['mdocs-batch']['type'],'zip') == false) {
?>
<div class="error">
<p><?php _e('Please upload a zip file.','mdocs'); ?></p>
</div>
<?php
elseif(isset($_FILES['mdocs-batch']) && strpos($_FILES['mdocs-batch']['type'],'zip') >= 0) {
to this:
/*
if(isset($_FILES['mdocs-batch']) && strpos($_FILES['mdocs-batch']['type'],'zip') == false) {
?>
<div class="error">
<p><?php _e('Please upload a zip file.','mdocs'); ?></p>
</div>
<?php
*/
if(isset($_FILES['mdocs-batch']) && strpos($_FILES['mdocs-batch']['type'],'zip') >= 0) {
Yup! worked perfectly this time!
Thank you very much!
No problem, on the next release I will have this fixed.
Cheers
I’m having the same problem, but this solution doesn’t work for me.
What is the exact error you are getting?
I’m not getting an error message. For example, I zipped several docs and named the file Spanish.zip. I uploaded the zip file, and now in the settings area there’s a Spanish tab, but no docs in it.