Abh*_*hic 91 iphone html5 file-upload mobile-safari ios
是否可以编写专为iOS设备(iPad,iPhone,iPod Touch)设计的HTML5 Web应用程序,它允许用户从文件系统上传图像?
想象一下,通过网络应用程序将新照片上传到您的Twitter头像.
小智 28
解决这个问题的另一种方法是给用户一个私人电子邮件地址,他们可以通过电子邮件将照片发送给自动上传(例如照片+ abc1212@yoursite.com).
设置更多工作,但将为所有设备上的用户提供一致的体验(非移动用户也可能觉得它很方便).
小智 8
我找到了一个可以接受的工作.在页面上添加一个mailTo链接,其中包含预定义的说明,向用户显示如何将图像从相机胶卷粘贴到电子邮件中.然后,编写一个作业/脚本,侦听该收件箱中的入站电子邮件,剥离图像并进行相应处理.
它并不完美,但是他们点击了safari中的链接,然后只需要去照片,复制并回到你的应用程序.在我的手机上试用之后,这不仅仅是一个可以接受的工作,它让我无需编写应用程序即可继续前进.
<div data-role="collapsible" data-collapsed="true" id="uploadPicContainer" data-theme="d">
<h3>{l t='Upload Picture'}</h3>
<a href="mailto:fotos@opina.com?subject={l t='My pictures of'} {$var_biz.bizname}[{$var_biz.id}]!&body={l t='To upload a picture go to your Camera Roll and copy paste an image to this area in the email. We will apply your picture after review!'}">{l t='Click here to upload pictures of'} {$var_biz.bizname}</a>
</div>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
95967 次 |
最近记录: |