Okay
  Public Ticket #3398208
File URLs in products
Closed

Comments

  •  11
    Ryan Dwyer started the conversation

    I tested Dropbox links for file urls but it didn't seem to work. Are external links disabled as download sources? Is there a way to enable it, if not?


  •  2,214
    WebWizards replied

    Hi Ryan,

    Is the Dropbox link a direct download link, or more of a page? I mean, when you go to the link does a download immediately start, or do you have to click on an extra download button first? By default this feature works only if that's a direct link.

    Check out this discussion: https://wordpress.org/support/topic/downloadable-product-w-link-to-external-url-thats-not-a-file/

    They are saying you can:

    Go to WP Admin » WooCommerce » Settings » Products » Downloadable products, and change the File download method to Redirect only (insecure).

    It would allow any link and the customer would just be redirected to that link.


    Kind regards,

    Stefan

  •  11
    Ryan Dwyer replied

    Oh, excellent! In your opinion, the option in the middle like here 22.06.2023_05.46.40_REC (screenrec.com)

    is good for allowing both regular file uploads/downloads and/or the redirect? 

    It is called, "X-Accel redirect/X-Sendfile"

  •  2,214
    WebWizards replied

    I tested on my local site, it seems only the last option (redirect only) will redirect to an external link. I think it's fine choosing that as well, 

    The documentation of that option says:

    When users download a file, their link redirects to the file. Using this method means your files will be unprotected and whoever has the upload link will be able to access the file, even when they are not logged in.


    So it's insecure in the sense that someone could share the dropbox link.