flipper828 Posted May 9, 2014 Share Posted May 9, 2014 Hello again, Pros! I need an advisory jump start so I don't have any code or examples to show. And I am not asking for any code. Just advise on the best possible way to proceed with my project.. PROJECT : I am trying to build a system that will allow me to upload video files to several different categories within several different categories etc. Boy...that sounds confusing already. First let me start by saying the video files are home recordings of reviews for my whole family's use and are not illegal in any way at all. This is what I want to be able to do: I have video files that fit into several different states (3). Within the first state I have 2 cities - within the second state I have 5 cities - and in the third state I have 1 city. Within all the cities are 5 different categories. I want to be able to upload them like so..... State1 | City1 | Category1 | video lands here. State1 | City1 | Category4 | video lands here. I am familiar with the php video upload script but from everything I have read, it will only upload to one directory. I don't know how to go about getting the videos into the correct directory. I thought about using a database driven drop down menu with an upload script for each state, city, category. I am willing to setup all the directories and scripts do this if its the best way but before I spend hours and hours testing all this, I thought I would check with you experts first. Is there a better way than what I am thinking? Thanks again in advance for your time and patience with me. CR Quote Link to comment https://forums.phpfreaks.com/topic/288378-video-file-upload-to-different-directories/ Share on other sites More sharing options...
gizmola Posted May 9, 2014 Share Posted May 9, 2014 Uploads go into a temporary holding directory, with the expectation that they then be moved using this function: http://www.php.net/manual/en/function.move-uploaded-file.php Quote Link to comment https://forums.phpfreaks.com/topic/288378-video-file-upload-to-different-directories/#findComment-1478929 Share on other sites More sharing options...
flipper828 Posted May 10, 2014 Author Share Posted May 10, 2014 Thank you gizmola. If I understand this properly. I should use the php upload script to get the file uploaded and then use the move_uploaded_file to move them to the proper directories? Quote Link to comment https://forums.phpfreaks.com/topic/288378-video-file-upload-to-different-directories/#findComment-1478987 Share on other sites More sharing options...
Ch0cu3r Posted May 10, 2014 Share Posted May 10, 2014 yes Quote Link to comment https://forums.phpfreaks.com/topic/288378-video-file-upload-to-different-directories/#findComment-1478992 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.