Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

Commit

Permalink
fix: bytes typo
Browse files Browse the repository at this point in the history
  • Loading branch information
karolsojko committed Jun 23, 2022
1 parent 642df79 commit 8585c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/self-hosting/file-uploads.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ sudo chown -R 1001.1001 data/uploads
If you would like to limit the file upload quota for your user then make sure to run the following query on your database:

```sql
INSERT INTO subscription_settings(uuid, name, value, created_at, updated_at, user_subscription_uuid) VALUES (UUID(), "FILE_UPLOAD_BYTES_LIMIT", 1073741824, FLOOR(UNIX_TIMESTAMP(NOW(6))*1000000), FLOOR(UNIX_TIMESTAMP(NOW(6))*1000000), (SELECT us.uuid FROM user_subscriptions us INNER JOIN users u ON us.user_uuid=u.uuid WHERE u.email="EMAIL@ADDR"));
INSERT INTO subscription_settings(uuid, name, value, created_at, updated_at, user_subscription_uuid) VALUES (UUID(), "FILE_UPLOAD_BYTES_LIMIT", 10737418240, FLOOR(UNIX_TIMESTAMP(NOW(6))*1000000), FLOOR(UNIX_TIMESTAMP(NOW(6))*1000000), (SELECT us.uuid FROM user_subscriptions us INNER JOIN users u ON us.user_uuid=u.uuid WHERE u.email="EMAIL@ADDR"));
```

Note that this is setting the limit to 10GB (1073741824 bytes) for user with email `EMAIL@ADDR`
Note that this is setting the limit to 10GB (10737418240 bytes) for user with email `EMAIL@ADDR`

### CloudFlare Missing Headers

Expand Down

0 comments on commit 8585c0a

Please sign in to comment.