Skip to content

Comments

Restore smaller upload file size limits#382

Merged
joanise merged 4 commits intomainfrom
dev.ej/fix-size-limits
Jan 27, 2025
Merged

Restore smaller upload file size limits#382
joanise merged 4 commits intomainfrom
dev.ej/fix-size-limits

Conversation

@joanise
Copy link
Member

@joanise joanise commented Jan 24, 2025

PR Goal?

While our old limits of 30KB/60KB were too low to allow realistic Studio-Web use, 250KB is causing crashes. I can crash the server with a 50kb file, even. So restore the max size for text to 40KB, but since the XML is quite bloated, allow 200KB for .readalong inputs.

While I'm here, I also added the same size limit to the text box, so that cut-and-pasting can't be used as a work around for the limit and bring the crashes back.

Fixes?

Heroku crash warnings we receive once in a while. Hopefully. 🤞

Feedback sought?

Make sure the code is OK.

Priority?

high

Tests added?

Normal use is already covered by CI.

Exceeding the limits is not tested, no.

How to test?

Spin up locally, or use the PR preview, and submit text file text file > 40kb, or .readalong file > 200kb, and see an error toast.

Confidence?

high

Version change?

no

@joanise joanise requested review from deltork and roedoejet January 24, 2025 20:47
@semanticdiff-com
Copy link

semanticdiff-com bot commented Jan 24, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  package-lock.json  47% smaller
  packages/studio-web/src/app/upload/upload.component.ts  40% smaller
  packages/studio-web/src/i18n/messages.es.json  0% smaller
  packages/studio-web/src/i18n/messages.fr.json  0% smaller
  packages/studio-web/src/i18n/messages.json  0% smaller

@joanise joanise marked this pull request as draft January 24, 2025 20:47
@joanise
Copy link
Member Author

joanise commented Jan 24, 2025

Made this a draft because I forgot to update localization...

@github-actions
Copy link
Contributor

github-actions bot commented Jan 24, 2025

PR Preview Action v1.6.0
Preview removed because the pull request was closed.
2025-01-27 19:06 UTC

@joanise joanise force-pushed the dev.ej/fix-size-limits branch from 62f6f55 to 4bba75e Compare January 24, 2025 22:31
@joanise joanise marked this pull request as ready for review January 24, 2025 22:31
@joanise
Copy link
Member Author

joanise commented Jan 24, 2025

Localization fixed. Ready to review.

@joanise joanise merged commit 3357665 into main Jan 27, 2025
6 checks passed
@joanise joanise deleted the dev.ej/fix-size-limits branch January 27, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant