We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a1dd3e commit f054371Copy full SHA for f054371
src/textbooks/textbook-form/TextbookForm.jsx
@@ -172,7 +172,7 @@ const TextbookForm = ({
172
onSavingStatus={onSavingStatus}
173
invalidFileSizeMore={intl.formatMessage(
174
messages.uploadModalFileInvalidSizeText,
175
- { maxSize: UPLOAD_FILE_MAX_SIZE / (1024 * 1024) },
+ { maxSize: getUploadFileMaxSize() / (1024 * 1024) },
176
)}
177
onSelectFile={setSelectedFile}
178
previewComponent={(
@@ -181,7 +181,7 @@ const TextbookForm = ({
181
<span className="modal-preview-text">{selectedFile}</span>
182
</div>
183
184
- maxSize={UPLOAD_FILE_MAX_SIZE}
+ maxSize={getUploadFileMaxSize()}
185
/>
186
<PromptIfDirty dirty={dirty} />
187
</>
0 commit comments