@luomus/laji-form 15.1.19 → 15.1.21
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.
|
@@ -12,13 +12,13 @@ const ImageArrayField_1 = require("./ImageArrayField");
|
|
|
12
12
|
const Spinner = require("react-spinner");
|
|
13
13
|
const components_1 = require("../components");
|
|
14
14
|
const ReactContext_1 = require("../../ReactContext");
|
|
15
|
-
const FILE_TYPES = ["audio/mp3", "audio/mpeg", "audio/x-wav", "audio/wav", "audio/wave", "audio/vnd.wave", "audio/flac"];
|
|
15
|
+
const FILE_TYPES = ["audio/mp3", "audio/mpeg", "audio/x-wav", "audio/wav", "audio/wave", "audio/vnd.wave", "audio/flac", "audio/x-flac"];
|
|
16
16
|
let AudioArrayField = class AudioArrayField extends React.Component {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
19
|
this.ALLOWED_FILE_TYPES = FILE_TYPES;
|
|
20
20
|
this.ACCEPT_FILE_TYPES = ["audio/*"];
|
|
21
|
-
this.MAX_FILE_SIZE =
|
|
21
|
+
this.MAX_FILE_SIZE = 100 * 1024 * 1024;
|
|
22
22
|
this.KEY = "AUDIO";
|
|
23
23
|
this.ENDPOINT = "audio";
|
|
24
24
|
this.GLYPH = "headphones";
|
|
@@ -45,7 +45,7 @@ let ImageArrayField = class ImageArrayField extends React.Component {
|
|
|
45
45
|
super(...arguments);
|
|
46
46
|
this.ALLOWED_FILE_TYPES = ["image/jpeg", "image/png", "image/bmp", "image/tiff", "image/gif"];
|
|
47
47
|
this.ACCEPT_FILE_TYPES = ["image/*"];
|
|
48
|
-
this.MAX_FILE_SIZE =
|
|
48
|
+
this.MAX_FILE_SIZE = 20 * 1024 * 1024;
|
|
49
49
|
this.KEY = "IMAGE";
|
|
50
50
|
this.ENDPOINT = "images";
|
|
51
51
|
this.GLYPH = "camera";
|
|
@@ -13,7 +13,7 @@ let PdfArrayField = class PdfArrayField extends React.Component {
|
|
|
13
13
|
super(...arguments);
|
|
14
14
|
this.ALLOWED_FILE_TYPES = ["application/pdf"];
|
|
15
15
|
this.ACCEPT_FILE_TYPES = ["application/pdf"];
|
|
16
|
-
this.MAX_FILE_SIZE =
|
|
16
|
+
this.MAX_FILE_SIZE = 20 * 1024 * 1024;
|
|
17
17
|
this.KEY = "PDF";
|
|
18
18
|
this.ENDPOINT = "pdf";
|
|
19
19
|
this.GLYPH = "paperclip";
|