Issue metadata
Sign in to add a comment
|
Chrome can't open PDF files downloaded from a particular website
Reported by
vivekcha...@gmail.com,
Jan 10 2018
|
||||||||||||||||||||||||
Issue descriptionSteps to reproduce the problem: 1. Launch chrome. 2. Go to kupdf.com and download any file. What is the expected behavior? Chrome should open the file automatically or we should be able to open it manually from downloads. What went wrong? Chrome doesn't open the file and shows "can't open file" error. I am easily able to open the files from file explorer. Did this work before? N/A Chrome version: 62.0.3202.84 Channel: stable OS Version: 4.4.2 Flash Version:
,
Jan 11 2018
Tested the issue in Android and able to reproduce the issue. Similar behavior is observed since Chrome #59.0.3030.0 Steps Followed: 1. Launched the Chrome Browser. 2. Navigate to the URL: kupdf.com. 3. Select any PDF file and download. 4. Navigate to Chrome Menu >> Downloads. 5. Tap on the downloaded file. 6. Observed that the "Can't open file" alert. However, PDF file opens by navigating to My Files in Device >> Downloads. Could be because of default PDF supported applications. Chrome versions tested: 59.0.3030.0, 63.0.3239.111(Stable), 65.0.3317.0(Canary) OS: Android 7.0.0 Android Devices: SM-J710F Build/NRD90M This seems to be a Non-Regression issue as same behavior is seen since M59. Untriaged for further input's on this issue. Please navigate to below link for log's and video-- go/chrome-androidlogs/800763 Note: This issue is not observed in Desktop.
,
Jan 11 2018
,
Jan 11 2018
,
Jan 11 2018
The downloaded file name contains two ".", so it is like kupdf.xxx.pdf, and that cause chrome unable to determine the file format. Dup of 800734
,
Jan 12 2018
Sir I have tried and successfully downloaded a file with two dots having the format as specified in your comment(qin...@chromium.org). I kindly request you to check and unmerge this issue.
,
Jan 12 2018
the issue in #1 is not about downloading, but about opening the pdf file, right? And that is the same issue as reported in 800734
,
Jan 13 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/f8c794328fcc9cf8e2e66fbfc8d45ad2bd140d4d commit f8c794328fcc9cf8e2e66fbfc8d45ad2bd140d4d Author: Xing Liu <xingliu@chromium.org> Date: Sat Jan 13 00:49:06 2018 Android Download: Handle application/download mime type. When trying to open a file with mime type "application/download", we currently use Android intent to open a file, where Android can't handle it and will always throw exception. For users, there is no further action available but seeing a "Can't open file." toast. This CL adds logic to deduct and change the mime type based on file extension so Android can use best effort to handle this mime type. Bug: 800734 , 800763 Change-Id: I9bef10c057c9480a7089b247242e3d7a6a41f53d Reviewed-on: https://chromium-review.googlesource.com/865541 Commit-Queue: Xing Liu <xingliu@chromium.org> Reviewed-by: Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/heads/master@{#529122} [modify] https://crrev.com/f8c794328fcc9cf8e2e66fbfc8d45ad2bd140d4d/chrome/android/java/src/org/chromium/chrome/browser/download/ChromeDownloadDelegate.java |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by pnangunoori@chromium.org
, Jan 11 2018