Skip to content

DiskUploadQuota plugin

Daniel Neto edited this page Nov 25, 2021 · 1 revision

The idea for this plugin is that the site administrator can charge its users for the space consumed to host their videos.

this plugin also allows free plans, so you can add users to them and thus limit the amount of disk space each user can use

when you enable this plugin. the users that have upload rights may see a button like this at the top

image

Plugin parameters

Stripe keys

If you will use Stripe as a payment method make sure you fill the following plugin parameters

  1. Publishablekey
  2. Restrictedkey
  3. SigningSecret

To use this plugin as a paid subscription, for now, it supports Stripe only Go to Stripe dashboard Site here (you must have a Stripe account, of course) Before you can verify signatures, you need to retrieve your endpoint’s secret from your Dashboard’s Webhooks settings. Select an endpoint that you want to obtain the secret for, then select the Click to reveal button. The SigningSecret will be available after your first purchase attempt, Webhook will be created automatically.

Generic parameters

deleteVideosWith0Bytes

In case of an error on Encoder or upload, this option will auto delete videos with 0 bytes

ifExceedQuotaShowAds

If the user exceeds his defined disk quota, the user will still be able to upload videos, but on his videos, we will show ads (requires GoogleAds_IMA or Ad Server Plugin)

ifExceedQuotaDoNotPlayVideos

If the user exceeds his defined disk quota, we will suspend all his videos

messageToAppearOnBuyPage:

With this option, you can customize the message that will appear when you are going to purchase a plan

image

Creating a plan

You will need to provide the following information:

  • Name
  • Description
  • Plan Price (If you put 0 ZERO on this field, this will be a free plan and will not require stripe)
  • How many days
  • How many days free trial
  • Quota Limit in megabytes
  • Status

chrome-capture (1)

Clone this wiki locally