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

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?

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.

File upload input on mobile Safari

I'm aware that it is now possible for users to upload files via HTML file inputs from their iPhones in mobile Safari.
In a desktop browser, if a file input already has a file selected, if you click the browse button, and then don't select a file, the file input "resets" to being blank.
It seems that in mobile Safari this behavior doesn't exist. In other words, after selecting a file for a file input, there is no way to deselect the file and set the input back to blank. Is this true, or am I missing something?

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.

zip file link not download from IIS in internet explorer 8 but instead opens as gibberish

i have a .zip file sitting on an IIS 6 webserver.
i have an html file with a link to that zip file like this:
Download File
When you open the page and click the link in firefox or chrome, you get the Open or Save dialog box as expected.
When you do the same in Internet Explorer 8, you navigate to a new page that displays the "contents" of the zip file as text (unreadable characters). This happens on at least 3 machines that were tested.
Any idea why this would be happening in IE or what i need to do to fix it?
Changing IE settings is not an option since we do not control the settings of who goes to our site. Changing the HTML or javascript on the page with link is an option.
Thanks for the help!
You may need to set the MIME type of the file. To do so, go to IIS6 Manager for the website. Go to Properties for the site (right-click on the website name for Properties in the menu). Click the HTTP Headers tab. Click the MIME Types... button.
From there, you should be able to add .zip as an extension. I'm not entirely sure which MIME type will work best, but application/zip and application/x-zip are two options to try.

how to show open/save dialog when linking to pdf files

I'm trying to link a pdf document from a static html file.
What I'm using is:
My pdf File
the open/save dialog comes up in firefox but not in IE7 or IE8.
I believe I have to change the MIME type but I don't know where to change it...
Since it works in Firefox I assume the file is actually there and accessible. In that case it depends on the browser settings how the download is handled. It might be that the download happens in the background because you setup that it should automatically download everything into a predefined folder (e.g. My Downloads/).
Check the IE settings to see where it puts downloads and check the folder to see if downloaded the file.