Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter cnieswand

    (@cnieswand)

    I did this in mdocs-downloads.php

    function mdocs_download_export_file($file) {
    	$filename = $file;
    	$file = sys_get_temp_dir()."/".$file;
    	if (file_exists($file)) {
    			header('Content-Description: File Transfer'. filesize($file));

    This gives the correct size of the file … but of course not in the right place. The Content-Length is probably converted automatically to 0 by the webserver when error 500 is encountered.
    So I really guess, that this is a webserver restriction, which prevents to pipe the output of readfile to the response …

    Plugin Author bhaldie

    (@bhaldie)

    sounds like it, maybe you could ask your service provider for some insight into this puzzle. They maybe able to give you a solution or tell you what I could do to make it work.

    I have the same problem. Is there an alternate method of exporting my files without downloading them one at a time?

    Plugin Author bhaldie

    (@bhaldie)

    no export is the only way currently.

    Ok, but export does not work. Any idea when this feature will be fixed?

    Plugin Author bhaldie

    (@bhaldie)

    in the case of the user above the problem was not a issue with mDocs, it was a server configuration. I don’t know how your server is configured but I would start there. Look at your server logs configuration files and error messages to find out why this 500 error is occurring.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Export does not work’ is closed to new replies.