How to upload video files in php

rekha's Avatar
Contributor
Hi,

I want to upload video files,have to store it in a mysql database and retrieve it using php.How can i do this.Anyone pls help...


Regards
Rekha
pete_bisby's Avatar, Join Date: Nov 2007
Go4Expert Member
I wouldn't recommend storing any kind of files within a database, certainly video files. You have to store them as BLOBs (Binary Large OBjects), which are huge - it is an unnecessary overhead.

Why not upload the files to a directory on the server, and store the file/folder name in the database.
pradeep's Avatar, Join Date: Apr 2005
Team Leader
pete_bisby is absolutely right, storing large files, in database is not recommended at all, if you have problems in using you server filesytem, store your files in Amazon S3 (Simple Storage Service), if easy, efficient and fast!