Jump to content

Product downloads distribution of (really) large files


whmcs_user

Recommended Posts

Hi,

I've checked the options for Product Downloads Distribution (see: https://docs.whmcs.com/Product_Downloads_Distribution ), which is working fine for smaller files but not for really large ones.

The (technical) problem is that the dl.php does not seem to support chunked file retrieval and distribution for download - while I can upload a really large file (5, 10, 25 or even more GB) thru ftp, the dl script by whmcs is trying to load all of the file into memory and then send it to the browser. Not good for large files. An setting the php memory_limit is of no real help here. There could also be the problem of sessions goind stale, as downloading will take some time.

So I thought of using an external download provider script (that one works well for downloading large files in a chunked way, splitting the content into 206 partial content fractions) and hooking it with whmcs to provide file access restricted to a client that bought the product.

But looking a the list of available hooks and esp. the api does not seem to have the downloads attached to a product logic implemented - or am I missing sth.?

Any good idea how to achieve the distribution of really large files through whmcs?

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated