-
-
Notifications
You must be signed in to change notification settings - Fork 464
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
Fixed: Some EPUB files are not downloading. #3738
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3738 +/- ##
============================================
- Coverage 53.86% 53.78% -0.08%
- Complexity 1376 1377 +1
============================================
Files 298 299 +1
Lines 11308 11333 +25
Branches 1495 1495
============================================
+ Hits 6091 6096 +5
- Misses 4226 4246 +20
Partials 991 991 ☔ View full report in Codecov by Sentry. |
e19c591
to
c9eba34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If any EPUB reader is not present in the device(which is not in most devices by default), then where the Open button will navigate, or what will it popup?
29c7faa
to
2fbcb0b
Compare
@MohitMaliDeveloper CI Failed again!!! |
1 similar comment
@MohitMaliDeveloper CI Failed again!!! |
af8860e
to
da88313
Compare
* The issue was epub fileName containing the colon ":" in it that is not supported by most of fileSystem, that's why it is not creating the file in fileSystem and we are not able to download the epub file. * So to fix this we have improved our `getDecodedFileName` method which returns the fileName of the epub file, here we are removing the colon from fileName if any contains. For this change we have added the test cases as well for our `getDecodedFileName` function to properly test it. * We also refined our downloadFileFromUrl method. Previously, the generateSequence function was used to create new files with underscores and incremented numbers, anticipating multiple attempts to save the same file. However, since we now save files only once in our storage, this feature is no longer utilized. This enhancement is detailed in issue #2879. * Added epub query in our manifest to properly open epub files in external application.
* This was requested in #3453 and this PR is related to the Epub opening issue so we are introducing this here.
…e scenarios e.g. "Download Failed", "Download Successfull", "When no reader application is installed in device", "File opens in external reader application", "When user clicks on NO Thanks button".
* Improved the dialog's message and title.
Fixes #3737
Fixes #3453
getDecodedFileName
method which returns the fileName of the epub file, here we are removing the colon from fileName if any contains. For this change, we have added the test cases as well for ourgetDecodedFileName
function to test it properly.EPubNotOpening.mp4
EPUBOpeningIssueFixed.mp4
screen-20240606-142648.mp4