Saving File correctly in android google chrome - html

i am trying to save data using a anchor tag in a offline mobile website.
My download attribute works fine (saves the file with the correct name i.e. with Date ) in chrome desktop but when run on android device in chrome It saved as csv;base64
can anyne suggest me any way where in i can save it correctly.

Related

Auto-open HTML file from Chrome to another browser

On downloading a file in Chrome, there does not seem to be a way to auto-open HTML files to a browser other than Chrome.
Opening the HTML file from the Downloads folder opens the file in the default browser, as intended. However, when Chrome auto-opens the downloaded file, it just opens in Chrome.
Why I'm asking: I built a Chrome extension that generates an HTML file based on user-selected text in a given webpage. The resulting HTML file, when opened, redirects to another website, to a page that is based on the user's selection. That page does not work properly in Chrome, and it won't for the next 6 months. In the meantime, I learned to program a Chrome extension and I have been blocked on this auto-open problem for 2 weeks.
On Windows 7 without admin privileges.

ng-file-upload: Upload file from mobile Firefox browser

I use ng-file-upload with AngularJS in my web app and it works great in PC browsers. However, when I open the app in Android Firefox, I am not able to upload files. But it works with Chrome. Nothing comes up when I click the file select button.
Is there anyway to make file upload does not work with FIrefox?
Thank you.

Why iPhone chrome file input file name always image.jpeg?

I have a web application which upload files from browser. For iPhone Google chrome, The file input control always return the same file name "image.jpeg". Please open this link in iPhone chrome: http://help.dottoro.com/external/examples/ljxenmhs/files_1.htm
whatever files (I think pictures only), the file names are always image.jpeg, why is this happening?

How to view a pdf file in the browser,when clicking on a link

I have developed an application using HTML 5. To make the application compatible with the mobile devices I have used cordova/phonegap.
Now the problem is that, the PDf files which is there inside the application is only getting downloaded, when clicked on the link. I need to get it opened in the browser, when clicked on the link. It works fine with the PC. But not with the mobile devices.
I stored the link to a variable and passed that variable to google. Now using some sort of services from google, the link is getting opened in the browser.
I tried installing inAppbrowser plugin also.
window.open(Furl, '_system', 'location=yes');
This was the line of code used, where Furl is the name of the variable, into which, the url address of the pdf file is passed.
This line of code works fine, when url address of a webpage is passed to the variable. But not with the pdf files.
Apart from that idea, is there any other solution for this problem?
Can someone help me out with this problem?
-Thank you
As stated already on a comment, it is possible on modern browser since they have in-built PDF viewer. This isn't the case for Android or iOS currently. What you could do is to convert the PDF to PNG image and then show that. There is a PDF2PNG plugin available for this purpose. Also, if you only need to support iOS 6 & 7, you can take a look at the PDF Viewer plugin.

Download .apk or .jar file using HTML5 anchor tag download attribute

I am developing HTML5 based web application. In that web application i am trying to download a file from server. I have tested it on Chrome & Safari desktop browser. It is working fine on the desktop browser. But When i try to download the file using web application on the Android mobile using Chrome Browser and Android Default browser then the file gets downloaded but the extension of file and the name of the file is wrong (downloadApplication.bin) instead of (demo.apk).