From c6afea2583a30f0baefd5394edc8a2e90a622f89 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Tue, 19 Jan 2016 16:54:08 +0100 Subject: [PATCH] Calculate max thumbnail size instead of hard coding it on the registration form --- .../components/pr_forms/pr_register_piece_form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/components/whitelabel/prize/portfolioreview/components/pr_forms/pr_register_piece_form.js b/js/components/whitelabel/prize/portfolioreview/components/pr_forms/pr_register_piece_form.js index ee3a78f2..2ef96661 100644 --- a/js/components/whitelabel/prize/portfolioreview/components/pr_forms/pr_register_piece_form.js +++ b/js/components/whitelabel/prize/portfolioreview/components/pr_forms/pr_register_piece_form.js @@ -193,6 +193,7 @@ const PRRegisterPieceForm = React.createClass({ render() { const { location } = this.props; + const maxThumbnailSize = AppConstants.fineUploader.validation.workThumbnail.sizeLimit / 1000000; return (
@@ -317,7 +318,7 @@ const PRRegisterPieceForm = React.createClass({ + label={`${getLangText('Featured Cover photo')} max ${maxThumbnailSize}MB`}>