Urbley Posted March 30, 2007 Share Posted March 30, 2007 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 Quote Link to comment Share on other sites More sharing options...
jguy Posted March 30, 2007 Share Posted March 30, 2007 First, I would check upload_max_filesize in my php.ini file. Here's a good link: http://www.radinks.com/upload/config.php Quote Link to comment Share on other sites More sharing options...
Urbley Posted April 3, 2007 Author Share Posted April 3, 2007 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.