Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator threadi

    (@threadi)

    I am unsure if readfile() is the right thing to do. This only reads files, not remote URLs. Try with

    echo file_get_contents('https://example.com/download/file.zip');
    Thread Starter Yehi

    (@yehi)

    found the problem,
    There is actually no problem with the code.
    The problem is that I send the request to the link of the same website. When I update the plugin, the site automatically goes to maintenance, so the API of that site is closed and the error is received.
    When I do the update from another site, of course everything works fine.
    problem solved

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin development, downloading updates via API link’ is closed to new replies.