Skip to content

[PB-6870]:feat/make max previewable file size configurable via env - #2185

Open
jaaaaavier wants to merge 4 commits into
masterfrom
feat/new-adjustable-preview-file-size-limit
Open

jaaaaavier wants to merge 4 commits into
masterfrom
feat/new-adjustable-preview-file-size-limit

Conversation

@jaaaaavier

@jaaaaavier jaaaaavier commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

The goal of this PR is to make the threshold for determining whether a file can be previewed adjustable without having to modify the code. To do this, we’ll use the variable REACT_APP_MAX_PREVIEWABLE_FILE_SIZE_IN_MB, which will now be the variable used for this purpose, we’ll keep the existing setting as a fallback.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Additional Notes

We will need to add a new env variable in cloudflare, both preview & production

@jaaaaavier jaaaaavier self-assigned this Sep 28, 2026
@jaaaaavier jaaaaavier added the enhancement New feature or request label Sep 28, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: dc96086
Status:🚫  Build failed.

View logs

@sonarqubecloud

Copy link
Copy Markdown

@jaaaaavier
jaaaaavier marked this pull request as ready for review September 30, 2026 07:19

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant