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() {
|
render() {
|
||||||
const { location } = this.props;
|
const { location } = this.props;
|
||||||
|
const maxThumbnailSize = AppConstants.fineUploader.validation.workThumbnail.sizeLimit / 1000000;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="register-piece--form">
|
<div className="register-piece--form">
|
||||||
@ -317,7 +318,7 @@ const PRRegisterPieceForm = React.createClass({
|
|||||||
</Property>
|
</Property>
|
||||||
<Property
|
<Property
|
||||||
name="thumbnailKey"
|
name="thumbnailKey"
|
||||||
label={getLangText('Featured Cover photo (max 5MB)')}>
|
label={`${getLangText('Featured Cover photo')} max ${maxThumbnailSize}MB`}>
|
||||||
<InputFineuploader
|
<InputFineuploader
|
||||||
fileInputElement={UploadButton()}
|
fileInputElement={UploadButton()}
|
||||||
createBlobRoutine={{
|
createBlobRoutine={{
|
||||||
|
Loading…
Reference in New Issue
Block a user