0

I want to allow users of my website to upload photos and video from their mobile phone. I have a web-based upload page (built using Flash) that posts uploads to a PHP script running on an Apache web server in Amazon EC2 cloud. I would like to use the same server to receive files uploaded by mobile.

The 3 options as I see it are - (could do all)

1) Develop a mobile browser optimised upload page (eg xhtml) - there is a tutorial mentioned in another question about this on stackoverflow. This would require the user to login beforehand so I know who has uploaded the file and where to put it in database.

2) Develop an app that will be able to access file system of mobile device and upload files. This could be configured once with the username and password of a user so uploading is a little easier.

3) provide an email address for users to send files to from their phone

And I suppose there is the option of using a 3rd party service for this, are there any open source scripts around?

Are there any other considerations I need to be aware of? How does iPhone fit in to this - I know that Flash for iPhone is not supported (yet) but will be in the next version of Flash (for apps not browser based). The tutorial I mentioned above would not work with iPhone either as you cannot get access to file system on iphone via web page.

any other information is greatly appreciated. many thanks

4

2 回答 2

1

选项 1 不适用于所有手机操作系统,尤其是 iPhone 操作系统。

选项 2 在时间和资源上过于昂贵,因为您必须确保应用程序在所有手机操作系统和每台设备上运行。想想不同的屏幕尺寸,触摸屏与否,是否有摄像头。开发原生应用程序对于上传功能来说太麻烦了。

许多智能手机(如果不是,所有智能手机)都支持选项 3。电子邮件非常容易解释,只需在您的用户个人页面上放置一个 mailto 链接,这样他就可以单击启动手机的标准电子邮件客户端。他还可以将电子邮件地址保存为联系人并与这个新的“联系人”“共享”媒体。

我认为你应该选择选项 3。

于 2009-12-09T14:44:49.187 回答
1

将您的照片上传公开为 RESTful Web 服务,然后您可以使用任何可以想象的客户端连接到它。

如果您想使用 iPhone 进行连接,您将使用 NSURLRequest、NSURLConnection 和 UIImageJPGRepresentation()。

于 2009-12-09T15:34:12.787 回答