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

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).

Related

Angular 4 disable file chooser for HTML5 camera attribute on desktops

Hi I have a file uploader application which uploads images.
I'm using HTML5 file chooser-
<input type="file" accept="image/*;" capture="camera">
I'm getting file chooser while using this app on desktop.
I wanted to disable file chooser for this application if not opened in mobile.
HTML5 by default opens file chooser on desktop.
I wanted to open camera on desktop or disable this application on desktop.
I don't want application to work on the chrome dev tools mobile view.
Any suggestions how to implement it?

How to open a HTML file in the apple tv app?

I am working on a tvOS app and I need to open a HTML file in the app. This HTML file is available locally in the app bundle. How can I open such file in the tv app as WebKit is not available in the tv app
There is no web browser or even WKWebView available in tvOS.
Nevertheless to display simple HTML content as Privacy Policies or similar... you could still use UITextView as described here

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.

ASP.NET - Images Not Loading Properly on Google Chrome/Firefox?

I am making a web application using ASP.NET and I noticed that only Internet Explorer loads images properly that are on my home computer (../Desktop/WebsiteImages/xxxx.jpg), whereas the images won't load on Chrome or Firefox. If I want the images to display on Google Chrome or Firefox, I have to upload the images on a web hosting site such as imgur instead of having them all on a file on my computer. Is this a known bug?
If I want the images to display on Google Chrome or Firefox, I have to
upload the images on a web hosting site such as imgur instead of
having them all on a file on my computer. Is this a known bug?
It is not a bug.
Web Server will never serve a file which is located outside of a web application (unless you create an image handler by yourself).
If you are new to web application, easiest way is to place images inside ~/images/ folder inside your ASP.Net application.
Then you can call the image like this -
<img src="#Url.Content("~/Images/MyImage.jpg")" alt="My Image"/>
showing local file like file:// is not allowed in Chrome and Firefox for security reasons by default, but this answer shows you how to change those settings. it's not recommended to use local filepath for your image

Saving File correctly in android google chrome

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.