Jump to content

Recommended Posts

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!!! 8)

 

Thanks for reading and I hope I wrote enough...

Link to comment
https://forums.phpfreaks.com/topic/170337-review-file-after-upload-is-done/
Share on other sites

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..

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

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.

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.