How can I upload a file with windows mobile? - html

All I have is a simple <input type='file'/> and a Windows Phone 8X HTC. In all other devices (iPod, ipad, android), the button is clickable and a file dialog shows up. But when I click it on windows phone - nothing happens. No file dialog at all.
I remember seeing people sending emails with attachments with their windows phones, so I assume that I am doing something wrong.
How can I upload a file on windows phone?
P.S. when I went to people whom I saw sending attachments with their phone, I found that they used native app, not html...

Windows Phone 8 doesn't support this directly from the browser (apparently, it might if you have an expansion card/memory card in the phone, but I don't have one to test with). I can say that the current developer preview of Windows Phone 8.1 does support it. When you click a file upload button in IE11 on WP8.1, a file selector is shown.

Related

Is there a way for a Windows tablet— when uploading an image on a website— to prompt to use the camera instead of using the File Explorer?

Problem
I'm currently working on a web application that needs to be able to upload images a lot. It is an <input type="file" name="picture" accept="image/*"> tag. Just like most other tablet or phone, I assumed that users on a Windows tablet— A Dell Venue 10 pro 5055, running on Windows 10 Enterprise in this case— would also be prompted to use the on-device camera or to choose from files. This is unfortunately not the case and makes the application a lot less user-friendly.
Tries
I checked this post: Can you launch the native Camera App from an Html 5 Web App?, the answer stated that using the following tag solved the problem for Android: <input type="file" accept="image/*;capture=camera">. This did not work for Windows.
The following post did provide an answer but that answer only works on Windows 8.1 unfortunately: Capturing images in web application on Windows 8.1 tablets
So is there a way to configure the tablet or to change the <input> tag in such a way that the user will be prompted to take a picture instead of choosing from an existing file?
Thank you in advance!

How to pre-populate the sms body text via an html link on a Windows Phone

I have been reading around and links indicate that
sms:?body=test body message should work but it doesn't seem to work on a Windows Nokia Lumia phone. While this code works on an android phone.
BTW, sms:;body=test body message works on iphone.
Any pointers?
I have same problem, only thing is there is no associated apps that recognise these types of links but found this that may help
https://www.windowsphone.com/en-gb/store/app/nfcsms/55e57a87-d1fd-420a-8f3c-892c0b7da8af - this APP does work;-) but the user must have the app installed on their phone ;-(
I am adding a prompt or popup so user can either download app and send via sms or use an emailto alternative. That should be problem solved. Hope that helps.

Windows phone 8 Webbrowser links are not clickable

I'm learning windows phone app development. I took yahoo mail site as sample and using it in the web browser control. I want to understand what settings I need to unable in web browser control to look the web page in web browser control as same as how that shows in Internet explorer on Windows phone. Here the screen shots what I see now
In the windows phone browser it looks like below -
Thing I'm missing here in my app is, I cannot see the 'Search mail' text in the search text box in my app.
The most IMPORTANT thing is that when I click the mail item in the app nothing happens. But in Internet explorer it actually opens the mail body.
Please guide me.
That probably caused by some functionality of the web page implemented using javascript. Therefore, try to set IsScriptEnabled property to true :
<WebBrowser IsScriptEnabled="True" .../>
That will enable javascript in the webbrowser control which is disabled by default.

UIWebView email hyperlink is not working on device

I am displaying a HTML page in my iPhone app. The HTML page has few Email addresses. In Mac desktop browser, if the same HTML page is opened and if i click on email address, MAC machines mailbox is opened to compose a new email. Whereas in iPhone, on clicking the email address it is trying to load the webView thinking it as a link.
How come it is working on MAC browser and not in iPhone app.
Source in HTML is :
customerinfo#mycompany.com
If i try to handle using MFMailControlViewController, it works. But my real question is, how come MAC desktop launching mail box and iPhone doesn't.
Thanks
Jithen
Go to interface builder to Web View settings. You need to enable Addresses and Links detection.
or
in the code:
webView.dataDetectorTypes = UIDataDetectorTypeAll;

How to detect phone function

I am building an html5 web-app which will hopefully be mainly run from a mobile device. The app has a phone number which when clicked, calls the number displayed.
This works great if the user is using an iPhone or Android etc, but what if the user is using an iPod Touch or iPad with no phone capabilities? On the iPhone simulator in XCode, i get an error message saying that safari cannot open the page.
Is it possible to detect if the device has a phone, and if not, disable the link
Thanks