• Resolved skreutzer

    (@skreutzer)


    Hello,

    I’ve written a small client for the WooCommerce REST-API in order to create new products in the shop. The documentation states that the "downloads" property of "product" only supports an URL for "file", which would mean that the file needs to be accessible without authentication on the net, right? Isn’t there a way to send the file with the request, or to upload it securely and unaccessible for the public?

    Sincerely,
    Stephan Kreutzer

    https://www.ads-software.com/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    This file URL is only stored; it doesn’t need to be accessible. Upload the file to your server prior to creating the product.

    Thread Starter skreutzer

    (@skreutzer)

    Thank you for your prompt response! As far as WooCommerce is concerned, what’s the preferred way to automate such file uploads, via WordPress XML-RPC API or even a custom SFTP client implementation?

    Plugin Contributor Claudio Sanches

    (@claudiosanches)

    @skreutzer you can upload using SFTP, Rsync or what fits you best.

    Thread Starter skreutzer

    (@skreutzer)

    Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce REST-API file upload’ is closed to new replies.