mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Calculate max thumbnail size instead of hard coding it on the registration form
This commit is contained in:
parent
2f4534f14e
commit
c6afea2583
@ -193,6 +193,7 @@ const PRRegisterPieceForm = React.createClass({
|
||||
|
||||
render() {
|
||||
const { location } = this.props;
|
||||
const maxThumbnailSize = AppConstants.fineUploader.validation.workThumbnail.sizeLimit / 1000000;
|
||||
|
||||
return (
|
||||
<div className="register-piece--form">
|
||||
@ -317,7 +318,7 @@ const PRRegisterPieceForm = React.createClass({
|
||||
</Property>
|
||||
<Property
|
||||
name="thumbnailKey"
|
||||
label={getLangText('Featured Cover photo (max 5MB)')}>
|
||||
label={`${getLangText('Featured Cover photo')} max ${maxThumbnailSize}MB`}>
|
||||
<InputFineuploader
|
||||
fileInputElement={UploadButton()}
|
||||
createBlobRoutine={{
|
||||
|
Loading…
Reference in New Issue
Block a user