سؤال

I have just started looking at JqueryMobile and want to know if the following is possible?

I want to be able to select a file (similar to in html) and then show some sort of dialogue that allows me to browse to a "folder" and select the file. It would then be up to me to send some sort of AJAX command to upload it to the server (where I am using Asp.net MVC 2)

Since I do not have access to an iPhone or iPad, I was told that I would only have access to the documents folder.

JD

هل كانت مفيدة؟

المحلول

You can't upload files using Safari and therefore JQueryMobile.

You can upload with ios 6 Safari as it now supports file upload from the gallery and some support for media capture

نصائح أخرى

I'm not sure if it's possible to send files, but take a look at PhoneGap. It gives access to filesystem to apps written with html/js

Just to be clear - Phonegap's support for iOS is rather fresh at the moment.

Obviously, with Safari in the soon to arrive iOS 6, file upload works great. I've been doing some mobile web app development with the beta version, using the <input type="file" />, and it works great!

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top