上传图片和视频
我有一个在 flash 中创建的网站。有一个用于上传图像和视频的链接。我想为此链接创建此上传模块。还要求将图像和视频上传到用户创建的文件夹或相册(例如 orkut 图片上传)。视频长度不得超过 5-6 分钟。
我想要这个问题的简短答案,因为我是网络应用程序的新手。如果有人可以帮助我。 谢谢..
I have a web site that is created in flash.There is a link for upload images and videos .I want to create this uploading module for this link.There is also a requirement that the images and videos which is upload to the user created folders or albums like orkut image uploading.The video should be maximum 5-6 minutes.
I want a brief answer for this problem ,because i am a new comer in web application.If any one can please help me.
Thank You..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您对此不熟悉,则需要决定采用某种服务器端技术。可能在你的情况下,我建议你看看 PHP (你的主机可能已经支持这个)。谷歌“PHP文件上传”,有很多教程。事实上,您的网站是 Flash 的,但事情有点复杂。
更新
我刚刚阅读了您对 ASP.NET 的评论(如果您将其包含在问题中,将会有所帮助)。因此,在本例中,谷歌搜索“ASP.NET 文件上传”。
If you're fresh to this you will need to decide on some server-side technology. Probably in your case I'd recommend taking a look at PHP (it's possible your host already supports this). Google 'PHP file upload', there are plently of tutorials. The fact that your website is in flash with complicate things a little bit though.
UPDATE
I've just read your comment re ASP.NET (woudl have helped if you'd included this in the question). So in this case google 'ASP.NET file upload'.
上传模块客户端
查看 Flex FileReferenceList 以了解整理一下如何使用 Flex/Flash 上传文件。
上传模块服务器
然后,您将需要一些服务器逻辑来保存文件,这可以通过多种方式完成,但当您使用 ASP 时,请查看
复制文件
。如果您使用 PHP 服务器,您会使用类似copy
。视频长度 - 大小与时间
在用户上传整个文件之前,您确实无法掌握视频长度。因此,将上传限制为固定大小(例如 50Mb)通常会更有趣。也就是说,您可以查看 getID3 ,它将能够读取有关上传文件的大量信息(一旦上传)。然后您可以使用它来限制大小。
只是最后一点。您想要实现的目标是一项相当复杂的任务,正如您所说,您是网络开发的新手。如果您对整个事情感到不知所措,请尝试将其分成非常小的项目,然后一个接一个地进行。
希望有帮助!
upload module client
Take a look into Flex FileReferenceList to sort out how to upload files using Flex/Flash.
upload module server
You will then require some server logic to save the file, this can be done in a multitude of ways but as you are using ASP take a look at
CopyFile
. Were you using PHP server you would use something likecopy
.length of video - size versus time
You really can't get hold of the video lenght until the user has uploaded the whole file. Thus it's generally more interesting to limit the upload to a fixed size, say 50Mb. That said you can take a look into getID3 that will be able to read a lot of info about the uploaded file (once it's uploaded). You could then use that to limite the size.
Just one last note. The thing your trying to achieve is a fairly complex task and, as you say, you are new to web-development. If your feeling overwhelmed by the whole thing try to split it into very tiny projects and work them up one after the other.
Hope it helps!