Jump to content


Large File Upload


4 replies to this topic

#1 Pooch

    Young Padawan

  • Members
  • Pip
  • 63 posts

Posted 05 May 2007 - 11:24 AM

I'm looking to upload large video files to my site. I have read that you can upload files by converting them into their text equivalent and putting them into a database as a blob. Is this method faster than using the PHP move_uploaded_file(), copy() functions? Or do you need to first upload the file to your server before you can convert into its text equivalent? What would be the fastest way of uploading large files using php?

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 05 May 2007 - 11:40 AM

The fastest way to upload a file via php is to upload it.

Converting anything to a text equivalent takes extra processor cycles. Storing it in a database takes extra cycles. And in all actuality, why would you want to store a whole video in a database when you can store it in a file and simply stream the file?

#3 _*Creative Insanity_*

  • Guests

Posted 05 May 2007 - 02:47 PM

Quote

why would you want to store a whole video in a database when you can store it in a file and simply stream the file?
I am wondering the same thing. I mean imagine converting a 100Mb video to text? why on earth for??

#4 WkD

    Young Padawan

  • Members
  • Pip
  • 16 posts
  • Gender:Male
  • Location:Scotland

Posted 06 May 2007 - 04:27 PM

How would you upload and stream it ?? Is there any tutorials on P2L on doing it ??

Im sorry i cant do a search for them because im in a bit of a rush :censored:

#5 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 08 May 2007 - 01:54 PM

If you're "in a bit of a rush", don't even bother trying... ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users