Jump to content

Uploading videos


Urbley

Recommended Posts

I know this has probably been covered a thousand times but here's my problem.  I'm making an admin section for an online e-learning application.  I want the "tutor" or administrator to be able to upload a video file.  Normally between 3-5mb.  Using html forms with POST just does not seem to work on files this size.

 

I also want to strip out just the file name and insert the filename i.e. myVideo.wmv and insert it into the database so another php script can access the video file at a later time.  The inserting into database is a problem.  But what's the best way to strip the filename i.e. c:\..\...\.....\...\myVideo.wmv to just the file name and what's the easiest way to upload the file?

 

A coded answer would be excellent but a finger pointing in the right direction would be just as good.

 

Steve

Link to comment
Share on other sites

It's set to 20mb.  I really don't know how to go about simply uploading this script, pulling the name off and storing it in a database.  I can do the database stuff but as for taking the whole string i.e.

 

c:\whatever\whatever\myvideo.flv and stripping it to just myvideo.flv... I don't know!  :(

 

using HTML post just seems to timeout no matter what I do. I was sure to include ENCTYPE="multipart/form-data" in the form tag though.

 

Does anyone have any ideas that could help me out?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.