OZZY9384 Posted August 15, 2009 Share Posted August 15, 2009 Hello my name is Chris Oswald and I have tried every where besides here... So please do not say "Try Google!" I am trying to make a site where people can upload files to my site so that they can be hosted so that other people can download them... Right now it sounds EASY but it not cause i need more then just that. Please read the steps so you get an idea of what I want... Steps: 1. User uploads file 2. On of my team members (mods, admins) must review the file before it is placed on the site 3. Once the file is reviewed and approved it is displayed on the user's profile and also placed on a repo. (repository) so it can be downloaded I would also like the user to get emailed when his/her package gets upload and approved. If you need any more info to what I am talking about please feel free to PM me or email me at [email protected] IF YOU HELP IN ANYWAY YOU WILL BE GIVEN CREDIT ON MY SITE!!! Thanks for reading and I hope I wrote enough... Quote Link to comment https://forums.phpfreaks.com/topic/170337-review-file-after-upload-is-done/ Share on other sites More sharing options...
oni-kun Posted August 15, 2009 Share Posted August 15, 2009 Well first design your database adding tables for your repository and user profiles, once you're done that, i'm sorry to say, but the easiest way is to look in google "PHP upload file script", use a tutorial or look at some existing code and it should be very simple. Check for MIME etc to make sure they're the extentions you want.. ( not exe, but zip allowed etc. ) Once you're done that and are able to upload files to a temporary directory.. you now how to write a script that can grab all the files and place them on the page, and in your database write permissions to mods to be able to view..say.. moderate.php, and be able to remove, delete, rename etc. those submissions. All in all it doens't seem too complex.. Quote Link to comment https://forums.phpfreaks.com/topic/170337-review-file-after-upload-is-done/#findComment-898552 Share on other sites More sharing options...
smerny Posted August 15, 2009 Share Posted August 15, 2009 Well... what exactly do you not know how to do? basically, you could have the database table have a field "status" which is initially 0 and switched to 1 after a mod/admin approves it... then when you are taking info from the database, do it WHERE status=1 Quote Link to comment https://forums.phpfreaks.com/topic/170337-review-file-after-upload-is-done/#findComment-898554 Share on other sites More sharing options...
OZZY9384 Posted August 15, 2009 Author Share Posted August 15, 2009 Well thank you both for helping me... I guess I was trying to make everything look hard . @Smerny Can you please explain or point me to a tutorial on how to do that? thanks veru much... Both will get credit on my site... Quote Link to comment https://forums.phpfreaks.com/topic/170337-review-file-after-upload-is-done/#findComment-898566 Share on other sites More sharing options...
smerny Posted August 15, 2009 Share Posted August 15, 2009 What exactly don't you know how to do? Quote Link to comment https://forums.phpfreaks.com/topic/170337-review-file-after-upload-is-done/#findComment-898577 Share on other sites More sharing options...
OZZY9384 Posted August 15, 2009 Author Share Posted August 15, 2009 What exactly don't you know how to do? Everything that you posted up above. i am a noob at php but i am getting better... And is all i need to learn is for someone to give examples and then i look at the code and then figure it out... thanks again for all your help. Quote Link to comment https://forums.phpfreaks.com/topic/170337-review-file-after-upload-is-done/#findComment-898580 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.