• Hi there,

    Quick question; I’ve installed the plugin, but I get the “transfer failed” error.

    Do you know why this might be?

    Thanks on advance!

    All the best,
    – Maarten

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ozpital

    (@ozpital)

    Thanks for the link @maartentak .

    You’re getting a 400 error from the first AJAX request to /wp-admin/admin-ajax.php.

    I get the feeling the plugins ajax actions aren’t being registered in time.

    I need more info. Do you get any PHP errors in your error logs when trying to transfer files with the plugin? They might reveal the issue.

    Thread Starter maartentak

    (@maartentak)

    I’ve checked but my error log doesn’t show any PHP errors on the page.

    Ive just solved this error i think.

    After looking at the curl request sent to the wetransfer auth end point i noticed that it was sending a “content-length: -1” header which was being refused by the server and returing a 400 error.

    in /app/services/OWPWT_CurlService.php i just changed the following:
    `public static function auth() {
    Error::post();

    $url = ‘authorize’;

    $response = self::fetch(‘POST’, $url);

    echo $response;
    die();
    }`

    public static function auth() {
    Error::post();

    $url = ‘authorize’;

    $response = self::fetch(‘POST’, $url, array(‘content-length: 0’));

    echo $response;
    die();
    }

    • This reply was modified 5 years, 11 months ago by StephenSkelly.
    Plugin Author ozpital

    (@ozpital)

    Thanks for posting this @stephenskelly , hopefully it helps some others. It’s highly unlikely I’ll be patching the release as WeTrasnfer are working on a drop-in widget which – if viable – could be a drop in replacement for the javascript side of the plugin and do away with the PHP curl requests.

    As you’ll be aware, I’ve removed the plugin from WordPress – I am in talks with WeTransfer and a new plugin featuring the above ‘official widget’ should be online soon.

    It will simplify my codebase and allow me to focus on integration with plugins like Gravity Forms, Contact Form 7 etc.

    If you’re interested I have updated my original plugin to support Contact Form 7 properly. You can find the source code here: https://github.com/weareindi/wordpress-wetransfer – it just never made it to the WordPress plugin directory.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Transfer failed’ is closed to new replies.