How to download a file using an Android phone call?

I created the application using Android phone unlock. I want to upload a file (the file button for the download button opens, then I select the file and click the "Open" button in this dialog.)

I use file transfer in the call API, but the output is different. How to change this file transfer in the phonegap API to select a file (open a dialog, select a file from this dialog) for download?

And also use <input type="file">from html. But it is not supported by telephone. The file selection button is displayed, but when I click on this button, nothing happens.

How do I open filedialog and select a file from the dialog when I click the button?

I beg you, please. Thanks in advance.

+6
source share
3 answers

Phonegap plugins are the way to go.

The git repository has file loader plugins.

Here are links to iPhone and Android plugins:

IPhone file update

Android file downloader

0
source

The above answer will help you. I also have a similar problem with you, it is resolved when I put the uploader.js file in the asset / www / folder and give a link to it in the index.html file.

0
source

A message will open. He points out a GitHub example that shows how to connect a file to PhoneGap using <input type="file">and upload it using jQuery Mobile.

0
source

All Articles