![]() |
Attachment Size on Usergroup
Asked about this at VB.com, they said try here.
I'm looking for a hack that would allow me to configure custom upload sizes through the ACP. For example, I want to be able to upload files up to 10 meg, but I only want admins to be able to use this option. Any thoughts? |
I can't be the only person who would want this hack....
|
I'd like to have it, but I just don't have the time to create this hack. This would certainly become the *Hack of the Month*, easily...
|
isn't there something like this allready in the acp?
|
Quote:
|
Quote:
At the moment, we can say that a jpg can be a maximum size, but it is a global thing, not configurable per usergroup. It would be an ultra simple hack, if that was what he was asking for... |
The maximum size allowable will be dictated by PHP, through the .ini settings for
upload_max_filesize post_max_size One could retrieve these values, take the minimum of the two, and call this the "max allowable size". Then, in the function process_upload (functions_file.php), the line: $maxattachsize = $attachtypes["$extension"]['size']; could be changed to use this "max allowable size" for any upload if the user is a member of one the privileged groups. |
Either way, like Log sad. Would have tyo own a dedicated server to do this.
|
Quote:
(Also, I am intrigued by your banner...what is Wed Design?) |
All times are GMT. The time now is 03:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|