@widgetic/editor 3.10.45 → 3.10.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dev/editor.js +4 -2
- package/lib/editor.js +1 -1
- package/package.json +1 -1
- package/src/core/services/uploads.js +3 -1
package/package.json
CHANGED
|
@@ -36,11 +36,13 @@ export default class UploadService extends EventsMixin(Service) {
|
|
|
36
36
|
this.refreshed = {};
|
|
37
37
|
|
|
38
38
|
this.files = [];
|
|
39
|
+
|
|
39
40
|
// max file size in MB
|
|
40
41
|
this.maxFilesize = user.premium ? 250 : 25; // MB limit / file for premium / free
|
|
41
42
|
|
|
42
43
|
// max quota in bytes
|
|
43
|
-
this.quota = 250 * 1000 * 1000; // 250 MB total quota for free users
|
|
44
|
+
this.quota = (user.premium ? 1000 : 250) * 1000 * 1000; // 250 MB total quota for free users
|
|
45
|
+
|
|
44
46
|
// used quota in bytes
|
|
45
47
|
this.used = 0;
|
|
46
48
|
|