Mobile-Safari 中的图片上传

发布于 2024-11-09 16:12:55 字数 176 浏览 3 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

混浊又暗下来 2024-11-16 16:12:55

MobileSafari 还不允许直接上传。可以通过 Picup 等外部应用程序实现

MobileSafari doesn't allow for direct uploads (yet). It would be possible through an external app like Picup

梦里°也失望 2024-11-16 16:12:55

我不相信苹果会在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文