• Resolved tanyamk

    (@tanyamk)


    After updating Woocommerce, I cannot use absolute path for downloadable files.

    i.e: using /var/test/file.zip for file path.

    What can I do to solve it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    Hi @tanyamk,

    It sounds like you’re trying to provide an absolute path to a file on your computer or on the server.

    Absolute path in this regard refers to an internet absolute path i.e. something along the lines of https://yourwonderfulsite.com/wp-content/uploads/file.zip rather than the absolute path to a file on your computer.

    The customer will be downloading this product from the absolute path provided and not from your local computer.

    You can learn more about the differences between an absolute path and a relative path for web addresses here – https://www.computerhope.com/issues/ch001708.htm#web

    Thread Starter tanyamk

    (@tanyamk)

    Hi @luminus,
    That’s exactly what I meant – before updating Woocommerce, I wrote the absolute path to a file in my server above the public_html folder, and it worked great.

    Now, Woocommerce wont accept it, there was some change in that regard?

    Thanks

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

The topic ‘Absolute path for downloadable files’ is closed to new replies.