mirror of https://github.com/vector-im/riot-web
Reduce max size to 2000 MB
parent
57590b9a8a
commit
6f922769a3
|
@ -131,7 +131,7 @@ const ExportDialog: React.FC<IProps> = ({ room, onFinished }) => {
|
||||||
}: Pick<IFieldState, "value">): Promise<IValidationResult> => {
|
}: Pick<IFieldState, "value">): Promise<IValidationResult> => {
|
||||||
const parsedSize = parseFloat(value);
|
const parsedSize = parseFloat(value);
|
||||||
const min = 1;
|
const min = 1;
|
||||||
const max = 4000;
|
const max = 2000;
|
||||||
|
|
||||||
if (isNaN(parsedSize)) {
|
if (isNaN(parsedSize)) {
|
||||||
return { valid: false, feedback: _t("Size must be a number") };
|
return { valid: false, feedback: _t("Size must be a number") };
|
||||||
|
|
Loading…
Reference in New Issue