Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(office): Add viewer option for max file size #1235

Merged
merged 4 commits into from
Jul 14, 2020

Conversation

mxiao6
Copy link
Contributor

@mxiao6 mxiao6 commented Jul 14, 2020

No description provided.

@mxiao6 mxiao6 requested a review from a team as a code owner July 14, 2020 01:18
src/lib/viewers/office/OfficeLoader.js Outdated Show resolved Hide resolved
src/lib/viewers/office/OfficeLoader.js Outdated Show resolved Hide resolved
src/lib/viewers/office/OfficeLoader.js Outdated Show resolved Hide resolved
src/lib/viewers/office/OfficeLoader.js Outdated Show resolved Hide resolved
@ConradJChan
Copy link
Contributor

Should probably change the title to indicate that viewer option for max size is being added, no need to mention appconf

@mxiao6 mxiao6 changed the title feat(office): support appconf file size for excel online feat(office): Add viewer option for max file size Jul 14, 2020
@mxiao6 mxiao6 requested a review from ConradJChan July 14, 2020 20:32
ConradJChan
ConradJChan previously approved these changes Jul 14, 2020
// If the user does not have permission to download the file, the file is larger than 5MB, or isDisabledDueToSharedLink is true,
// then disable the Office viewer
const maxFileSize = getProp(viewerOptions, 'Office.maxFileSize', FIVE_MB);
// If the user does not have permission to download the file, the file is larger than Appconf file size or 5MB,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appconf -- also maybe update to reflect the max file size rather than 5MB

@mergify mergify bot merged commit 96942d6 into box:master Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants