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

Properly handle API responses for big file contents #1347

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

Fs00
Copy link
Contributor

@Fs00 Fs00 commented Jul 6, 2024

Since May 2022, the repository file contents API does not return an error anymore when fetching files bigger than 1MB.
However, file contents are not included in the JSON payload in those cases, and therefore this makes the in-app file viewer display a blank screen instead of opening the file in the browser as it did previously.

With this PR, the app handles those API responses properly.

@Fs00 Fs00 force-pushed the file-size-fix branch from 24a9d58 to 8bddf4f Compare July 6, 2024 14:08
@maniac103 maniac103 merged commit 8d11775 into slapperwan:master Jul 6, 2024
@Fs00 Fs00 deleted the file-size-fix branch July 6, 2024 15:28
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.

2 participants