Mobile-Safari 中的图片上传
我正在使用 Ruby on Rails 构建 JQuery Mobile 应用程序,并且需要一种将照片从移动设备上传到 Amazon S3 的方法。我认为最好的方法是使用 Paperclip gem,但主要问题是在 Safari 中(如果是 iPhone)文件输入被禁用。
还有其他解决方案吗?
非常感谢!
I'm building a JQuery Mobile application using Ruby on Rails and I need a way to upload photos from the mobile device to Amazon S3. I thought that the best way would be to use Paperclip gem, but the main problem is that in Safari (in case of IPhone) the file input is disabled.
Is there another solution?
Thank you very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
MobileSafari 还不允许直接上传。可以通过 Picup 等外部应用程序实现
MobileSafari doesn't allow for direct uploads (yet). It would be possible through an external app like Picup
我不相信苹果会在 MobileSafari 中支持直接上传功能,因为对他们来说,为最终用户提供对文件系统的有限访问权限来上传文件(无论是来自 /var/mobile/)对他们来说太复杂了安全原因。也许从 Dropbox 或 iDisk 等其他应用程序上传就可以解决问题,但这只是我的猜测。
I don't believe Apple will ever support a direct upload function in MobileSafari, since it's too complicated for them to give the end-user limited access to the filesystem to upload a file (whether it be from /var/mobile/) due to security reasons. Maybe an upload from another app like Dropbox or iDisk would do the trick, but that's just my guess.