Uploading

sze5003

Lifer
Aug 18, 2012
14,320
683
126
I have a small section of my website where users can login and register its pretty empty for now. But the point of this was to allow users from the forums register and upload files. It's mostly for android development.

That being said, what would be the best way to incorporate an upload section so each user can upload their files, say to a directory on the server but every user that is registered would have access to those files ?

I know I can do a simple PHP upload script but roms and patches usually are over 200mb or so. Any ideas ?

Basically user logs in, I I have functions that check if they are admin whatever , and then they would be allowed to go to the upload/download section and upload files to the upload directory on the server under their username. I'm also hoping other users can browse the other user files too.

Was looking for something simple but couldn't find anything for this purpose ??
 

sze5003

Lifer
Aug 18, 2012
14,320
683
126
Hmm I was thinking of not storing the files in a database. Mainly because they will be very large zip files. Up to say 500mb. Storing them on a file path on the server would be easier.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
I removed the second post, which was from an SEO spammer, so the thread looks a little disjointed.

You don't want to store the files themselves in the database, you want to store information about the files in the database, but have the actual file on disk somewhere (generally, there are times when it can make sense to store binary data in the db, but not often).
 

sze5003

Lifer
Aug 18, 2012
14,320
683
126
Ah thanks it looked like a spammer. I could just list the files and control the delete link by use of my admin function. It's finding a simple large upload script that is my main issue. I tried one on w3 schools, but it won't upload zip and rar files even though enctype is multipart and data and I specified the correct type as application / compressed zip and rar.

Generally every registered user should be able to view the files.