In my app i have shown pdf from the remote server using webview and i have to add a action to download the pdf and save it into iPhone how to do...Using Php i tried to force download pdf,which works in browser(desktop) not in device
Can any one help me...
The (unjailbroken) iPhone's Safari cannot access the local file system, so it's impossible to download anything.
(The iPad, OTOH, may support it.)
use the download attribute in slide your a tag
<a href="content/file.pdf" download > pdf link </a>
<a href="content/file.doc" download > doc link </a>
Related
I am currently building a web app with ionic
in the input field, I need to upload a photo either from the camera or select from the gallery. the code I am using is
<ion-item>
<input type="file" accept="image/*;capture=camera" name="imagefile"
(change)="changeListener($event)">
</ion-item>
however, on the PC, it shows the file browser, but on the mobile phone (android & ios), it just uses the camera. there is no option to select images from the image gallery.
I tried removing the capture=camera part, but still, it only calls out the camera on mobile devices. Is there any way to be able to select files from the device gallery?
Have you figured this out? If not, I've found a great example for you to follow.
ionic-pwa-camera-no-plugins
Hope this is helpful and please update your findings here.
Cheers.
I was able to upload images present in my imagegallery using the phonegap application.
I want to know whether it will be possible for me to upload a pdf from the iphone application. Either using phonegap OR any native technologies.
Have you tried to add a <input type="file"> field and send the form against a script where you can work with it?
Perhaps this will lend you in the right way.
Can we access the iOS camera roll using the Safari's file chooser i.e. <input type="file">? According to this question, we cannot access the camera.
No, you can't. Safari doesn't support file uploading. You can, however, purchase and install iCab, which does.
Is there any way to use <input type="file"> in Safari on iPhone/iPod Touch? Or is there something similar that I can use inside the browser? I want to upload a photo from the device to my database using the browser.
This is possible with iOs 6 or greater (http://www.apple.com/ios/whats-new/#safari). The browser renders
<input type="file">
and clicking on "Choose File" prompts the user to take a new photo or choose existing from the photo library.
Can't be done with plain XHTML/javascript as Safari does not support uploads. See this previous question for a potential workaround solution to upload photos.
I had the same problem today. The alternative browser iCab Mobile does support file uploads. I got it for my iPad and (at least for me) file upload works fine.
When i will touch download link in any web page
is iphone downloads that content ?
if yes then where it will download ?
It won't... unless and otherwise it's web content (which can be open by safari web browser...)
Mobile Safari does not support downloading files other than files that are used on a web page.
The iphone can't download stuff. When you try to you'll see this error screen