Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author bhaldie

    (@bhaldie)

    What errors are you getting??

    Thread Starter murph-master

    (@murph-master)

    It says “Please upload a zip file”

    Plugin Author bhaldie

    (@bhaldie)

    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!

    Plugin Author bhaldie

    (@bhaldie)

    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.

    Plugin Author bhaldie

    (@bhaldie)

    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.

    Plugin Author bhaldie

    (@bhaldie)

    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!

    Plugin Author bhaldie

    (@bhaldie)

    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.

    Plugin Author bhaldie

    (@bhaldie)

    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.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Unable to Batch Upload’ is closed to new replies.