Upload Videos

How do you upload videos using PHP & MySQL

Questions by ramsari

Showing Answers 1 - 15 of 15 Answers

divyaaaj

  • Nov 15th, 2008
 

By adding the file field to browse the file to upload .And you need to set the enctype of the form to "multipart-form-data" to get the $_FILES in the form submition. Once you get the $_FILES['tmp_name'] in the submition then you can move the file from this temporary location to your required location by php move_uploaded_file(tmp_location,destination) function.

  Was this answer useful?  Yes

amitverma

  • Feb 9th, 2009
 

Whether Videos or Audios, those are nothing but binary files. You may upload them using simple HTML forms (using enctype=multipart/form-data) and may store they either in MySQL database BLOB type column (MySQL's binary data type storing column) or you may store they in any directory (filesystem) on the server.

  Was this answer useful?  Yes

For uploading videos you need not store the video in database. Just you store the video path in database. You store the videos in a separate folder like video_uploads. After uploading you can call those videos from the video_uploads folder via MySQL ie the path is already stored in database. And one more thing, if the file size is more than 2MB the file is not successfully uploaded. For that you need to change the max_file size in php.ini file.

  Was this answer useful?  Yes

vinit

  • Dec 14th, 2012
 

For uploading videos you need not store the video in database. Just you store the video path in database. You store the videos in a separate folder like video_uploads. After uploading you can call those videos from the video_uploads folder via MySQL i.e., the path is already stored in database. And one more thing,if the file size is more than 8 MB the file is not successfully uploaded. For that you need to change the max_file size in php.ini file.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions