Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Amrod

    (@amrod1)

    Keep getting the same error ??

    “AppData\Local\Temp\_nlCfeix.jpg.part could not be saved, because the source file could not be read”

    Plugin Contributor gopiplus

    (@gopiplus)

    File : wp-content\plugins\email-download-link\job\ed-downloads.php

    Your server may not support curl option. we are using this method to create download. Please check the above mentioned file and change the code that match your server.

    dsorgtpud

    (@dsorgtpud)

    I’m getting the same issue and have verified through my host that they support curl. Any other thoughts?

    I was able to fix it by adding the line

    curl_setopt($ch, CURLOPT_USERAGENT, “Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36”);

    Without the user agent set, I was basically downloaded a “400 Bad Request Error”.

    For anyone having the same problems with PDFs being corrupted:

    In wp-content\plugins\email-download-link\job\ed-downloads.php, change

    header('Content-Type: application/force-download'); (line 58 for me)

    to:

    header('Content-Type: application/pdf');

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Download links are broken’ is closed to new replies.