使用Angularjs和Symfony2上传视频

时间:2022-10-16 15:03:29

What is the best way to upload video with AngularJS and Symfony2 using MongoDB database, and more scalable to do the upload in the database or in the application files?

使用MongoDB数据库使用AngularJS和Symfony2上传视频的最佳方法是什么,并且在数据库或应用程序文件中进行上传更具可扩展性?

1 个解决方案

#1


2  

Video is only file, so you can use any module mentioned here: File Upload using AngularJS

视频只是文件,因此您可以使用此处提到的任何模块:使用AngularJS上传文件

If you want to implement it itself, you might like resumablejs.com.

如果你想自己实现它,你可能会喜欢resumablejs.com。

For videos I would go with file system, it will probably be better for streaming video.

对于视频我会使用文件系统,它可能更适合流媒体视频。

As for scaling, it depends on your point of view. i.e. If your app is running on multiple machines connected to 1 DB than file system is not good idea.

至于缩放,这取决于你的观点。即如果您的应用程序在连接到1个DB的多台计算机上运行,​​那么这不是一个好主意。

#1


2  

Video is only file, so you can use any module mentioned here: File Upload using AngularJS

视频只是文件,因此您可以使用此处提到的任何模块:使用AngularJS上传文件

If you want to implement it itself, you might like resumablejs.com.

如果你想自己实现它,你可能会喜欢resumablejs.com。

For videos I would go with file system, it will probably be better for streaming video.

对于视频我会使用文件系统,它可能更适合流媒体视频。

As for scaling, it depends on your point of view. i.e. If your app is running on multiple machines connected to 1 DB than file system is not good idea.

至于缩放,这取决于你的观点。即如果您的应用程序在连接到1个DB的多台计算机上运行,​​那么这不是一个好主意。