File upload in IOS safari browser - android

In my web app, User need to upload doc or pdf file from Mobile or Tablet browser [Android & IOS].
It's fine in Android, But IOS now allowing to access file system except images for uploading using safari.
I am searching for alternative ways and need solution without jail breaking, but i can't find one.

Related

Open PDF in Android without it Automatically Being Downloaded To Device

I have a mobile responsive website where users enter login credentials to gain access to view
pdf files inside my portal.
When viewing the website on my android phone, if a pdf is opened from inside the portal, my android phone automatically downloads a copy of the pdf on the android phone and then opens it.
This same process on a laptop or desktop simply opens the pdf in the default browser. There is a download button, but it is not automatically downloaded on the device.
From a programming standpoint, is there a way a programmer could prevent the PDF document from being automatically downloaded on the android phone and just have the document viewable in the browser?
Depends on what you mean by downloaded. Whenever you view ANYTHING on the web, you have to download it. Downloading is the process of receiving data from a remote source. You have to download any webpage or url to view it.
It seems what you're asking is "Does it have to be saved to a file in the Downloads folder". In which case no, it doesn't. You could download it and keep it in RAM.

Download video from s3, works in Android and Desktop, but not in iOS

My website creates "presigned-url" to download files from Amazon S3.
In Desktop and Android this URL starts download perfectly using Chrome or other browser.
https://s3.sa-east-1.amazonaws.com/videos.cinemedsite.com.br/888888/888888_00000000000_20180808_235040.mp4?AWSAccessKeyId=AKIAJQCURENNFPNNGK6A&Expires=1609383840&Signature=4lYLxgkAIt3xMer%2FPcL%2FAepwbkY%3D
But with this same URL on iOS (iPad and iPhone tested), the video just plays in any browser and there's no way to download.
I've tried to download directly from aws console too, no success.
Metadata is already configured as :
content-disposition: attachment;filename=lixo.mp4
content-type: video/mp4 (already tried application/octet-stream also).
Any ideas ?
Thanks in advance!
Marcello
On iOS there is not a user accesable file systems with default download 'folder' as you have on a PC or MAC - i.e. you can't just click a link in the browser and have the file download to it.
With Apps like dropbox you van open a PDF file, for example, in your browser and then click the Share button and choose Dropbox to download to your device. 'Documents', another app available on the appstore, has a built in browser so is worth looking at also.
You can create your own application which will accept a URL, download it and then provide a list or directory of downloaded files. These files will only be visible by the app unless you add some functionality to save them to, for example, the gallery.
There is an AWS SDK available on Github which would be a good place to start if you are using your own app: https://github.com/awslabs/aws-sdk-ios-samples

How web crawler works in Android written in python3?

web-crawler written in python3, webdriver.Firefox() or webdriver.Chrome(Path) allows to open the browser and extract something. But, what if this crawler (written in python) exported to Android either using Kivy or using some other way Will .apk file work? Will the browser will open there too? In .apk file, we cannot not allow to open the browser. Then how the web-crawler will work? Any other solution except headless browsing that can work in android application ?

Viewing PDF in Android / Chrome

I have a website caching pdfs offline with a .manifest-file.
On the desktop version of Chrome the PDF can be viewed offline inside Chrome. But on the Android Chrome nothing happens when I'm trying to open the cached PDF. No error message, just nothing.
I'm guessing the android default pdf-reader can't find the cached pdf?
Anyone who knows how I can view the PDF in Android Chrome?
Thanks!
That's correct, browsers differ in terms of their built-in PDF support. One method you could explore is using Mozilla's pdf.js, which is a pdf reader built entirely in javascript that works just about everywhere. Make another web page that calls pdf.js and loads the PDF, and make sure all of that is in your cache manifest and you should be good to go.

jQuery Mobile can upload file?

I'm finding a jQuery Mobile plugin to upload image from my android tablet onto server, but so hopelessly! I've found the same question but Flash uploader on smartphone (or table) seems that a bad solution.
May jQuery Mobile support upload file from browser?
jQuery Mobile doesn't do anything to disable file uploads. It just doesn't style them due to browser security restrictions and you can't upload files with the AJAX navigation system. I use file uploads with jQuery Mobile in my application with no problem at all.
If you want to use file uploads with jQuery Mobile you have to do two things:
1) Turn off Ajax navigation using data-ajax="false" on your form definition because you can't upload files using Ajax.
2) Specify the appropriate encoding type of enctype="multipart/form-data" on your form.

Categories

Resources