Skip to content

Commit

Permalink
Added new kb article asyncupload-uploading-files-google-drive-android…
Browse files Browse the repository at this point in the history
…-issue
  • Loading branch information
KB Bot authored and Jekata committed Dec 18, 2023
1 parent ce7a08d commit 15abfec
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: File upload is terminated on Android when choosing a file from Google Drive
description: Learn how to resolve the issue of not being able to upload files from Google Drive on Android devices using the RadAsyncUpload for ASP.NET AJAX component.
type: troubleshooting
page_title: Troubleshooting File Upload Issue from Google Drive on Android
slug: asyncupload-uploading-files-google-drive-android-issue
tags: android, file upload, RadAsyncUpload, Chrome, Google Drive
res_type: kb
---

## Environment

| Property | Value |
|----------|-------|
| Product | RadAsyncUpload for ASP.NET AJAX |
| Version | all |

## Description

I am experiencing an issue where I cannot upload files from Google Drive on Android devices using the RadAsyncUpload component. When I select a file from Google Drive, nothing happens and the whole page becomes unresponsive. However, uploading a photo directly from the camera works fine.

## Solution

To resolve this known Chrome issue on Android, you need to use the fallback iframe upload module when the browser is Chrome and the platform is Android. You can do that by adding the following script under the ScriptManager in your application:

```
<script>
if (Telerik.Web.Platform.android && Telerik.Web.Browser.chrome && Telerik.Web.UI.RadAsyncUpload) {
// force iframe mode due to https://bugs.chromium.org/p/chromium/issues/detail?id=1063576&q=ERR_UPLOAD_FILE_CHANGED&can=2
Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable = function () { return false; };
Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; };
Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function () { return false; };
}
</script>
```

By adding this script, the RadAsyncUpload component will use the iframe module over the FileAPI, which resolves the issue with uploading files from Google Drive on Android devices using Chrome.

## See Also

- [RadAsyncUpload Modules Documentation](https://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/modules)
- [Cannot Upload Files From Google Drive on Android](https://www.example.com/article-link) (external article)

0 comments on commit 15abfec

Please sign in to comment.