Skip to content

fix: tns preview warns incorrectly for exceeding file size limit #3954

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

Merged
merged 1 commit into from
Oct 1, 2018

Conversation

rosen-vladimirov
Copy link
Contributor

The check in tns preview relies on the zipped content instead of checking the actual file content. This way, based on what is the zipped content, we may end up with 30000 bytes length for 15 MB input files or for 100KBs input.
The check is not correct, it should rely on the input file size, as when extracted on device, their size is the actual limitation.

PR Checklist

What is the current behavior?

tns preview shows warning that file size limit is exceeded even for small projects.

What is the new behavior?

tns preview shows warning only when input files that have to be transferred are larger than 15MBs

The check in `tns preview` relies on the zipped content instead of checking the actual file content. This way, based on what is the zipped content, we may end up with 30000 bytes length for 15 MB input files or for 100KBs input.
The check is not correct, it should rely on the input file size, as when extracted on device, their size is the actual limitation.
@rosen-vladimirov
Copy link
Contributor Author

run ci

2 similar comments
@rosen-vladimirov
Copy link
Contributor Author

run ci

@rosen-vladimirov
Copy link
Contributor Author

run ci

@rosen-vladimirov rosen-vladimirov merged commit 92b7b06 into master Oct 1, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-preview-check-files branch October 1, 2018 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants