PDA

View Full Version : File redirection script for users only


Parabolart
07-14-2005, 11:57 PM
Can anyone make a script like this...

For example.. I upload a file, and the script make's an "id". so like.. if i want to download the file.. I go to .../file.php?id=35 and it then checks if you are a registered used and then redirects you to the file. Is this possible?

The reason being is that I don't want to use attachments on big files that will cause my database to get really big.

Marco van Herwaarden
07-15-2005, 03:10 AM
Then move your attachments from Database to filesystem. You can do this easy from ACP.

Parabolart
07-15-2005, 04:42 PM
Then move your attachments from Database to filesystem. You can do this easy from ACP.

where can i find tat setting?

edit: nevermind found it. (Attachments -> attachment storage type)

Marco van Herwaarden
07-15-2005, 07:37 PM
Yup :D

shiva
07-15-2005, 10:14 PM
Would kind of like this anyway, even though i use the filesystem. It's the amount of bandwidth used, and resources, and there should be some way to restrict downloads from the attachment system by usergroups.