studgate Posted August 1, 2007 Share Posted August 1, 2007 I am working on an upload manager for an application and I want to know if there is a way to upload the data to a certain directory if it is a certain type. For example, the user will browse the file, and I will ask if it is either a video/picture/audio and depending on the answer the file will be uploaded to that directory. I hope I make sense ??? if not I can explain again. Thank Guys! , YOU ROCK! Link to comment https://forums.phpfreaks.com/topic/62880-solved-simple-simple-question/ Share on other sites More sharing options...
Grodo Posted August 1, 2007 Share Posted August 1, 2007 make an few if statments if ($filetype==.mov) $directory='movies'; if ($filetype==.jpg) $directory='pictures'; if ($filetype==.wav) $directory='sounds'; Link to comment https://forums.phpfreaks.com/topic/62880-solved-simple-simple-question/#findComment-313039 Share on other sites More sharing options...
studgate Posted August 1, 2007 Author Share Posted August 1, 2007 I will try this and I think I can make it work, Thanks! Link to comment https://forums.phpfreaks.com/topic/62880-solved-simple-simple-question/#findComment-313044 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.