Support » Plugin: WooCommerce » Large Digital Files for Sale Download Leading to 404 Error

  • Resolved cmsplay

    (@cmsplay)


    Hello. Am trying to set up paid digital downloads using WooCommerce ‘Force downloads’ setting.

    The files are big (1.6 GB) – too big to upload via:

    WooCommerce>Products>Product data>Variations>Downloadable files

    …WP returns a ‘file exceeds permitted file size’.

    1. I have therefore FTP’d the digital files to the correct WooCommerce folder on the server.

    When uploading digital files via:

    WooCommerce>Products>Product data>Variations>Downloadable files

    …WooCommerce (correctly) appends random characters to the end of the file name for security. No such characters are appended when I FTP the digital files to the correct place, but this should not matter. (?)

    2. From FTP client I copy URL of digital file and paste this into:

    WooCommerce>Products>Product data>Variations>Downloadable files>File URL

    …I know this is not the right thing to do, as WooCommerce says these URLs should already be encoded.

    3. When I run a test to ‘buy’ a file from the site front end, I am taken to an Error 404 page.

    If I upload a small digital file via:

    WooCommerce>Products>Product data>Variations>Downloadable files

    …then all works fine and the file is downloaded.

    Two questions:

    1. Why is the 404 error page appearing for the larger FTP’d files?
    2. How can I get WooCommerce to ‘encode’ download URLs, if the digital file is not uploaded via Variations>Downloadable files ?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @cmsplay

    1.Why is the 404 error page appearing for the larger FTP’d files?

    You’ll want to contact the web host to see if there are PHP errors or if there is adequate hosting to deliver large files. My suggestion would to use a plugin like Amazon S3 to deliver larger files to avoid hosting limitations:

    Amazon S3 Storage – https://woocommerce.com/products/amazon-s3-storage/

    2.How can I get WooCommerce to ‘encode’ download URLs, if the digital file is not uploaded via Variations>Downloadable files ?

    Placing the files in the proper directory should do the trick.

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Large Digital Files for Sale Download Leading to 404 Error’ is closed to new replies.