ok here goes, i have been pondering on this for some time.
there needs to be some method of limiting the filesize of images that are uploaded. yes we set the max_upload_size in the php configuration, though this is not what i am talking about. that sets the overall upload limit, and that is fine.
what needs to be done is have the ability from the admin panel based on membership levels if possible, to limit the image sizes, audio sizes, and video sizes.
now why do you think i mention image sizes, with the age of technology, and digital cameras, many are taking pictures that have high resolution, and are not web publishing compatible, so you end up with an image the size of 3800x2300 or something. with both bandwidth and diskspace being considered here, there should be a means of forcing a crop o the images that are outside a defined spectrum 800x600 is plenty when considering that avatars are force cropped.
videos, kind of the same situation, where you want to allow all to upload videos, we should be able to as the admin, limit the filesize per membership level, yes we can limit the actual number of videos uploaded and again, the max_upload_size in general is set from the php config, but that is not enough, this needs to be controlled from the admin panel, and not dependant on the server setting.
same with audio files, but they truly present the least of the concern here, but should still have some method of managing the file size that is uploaded from the admin panel
this needs to be a default function, not something that is written and sold in the market for $40.00
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
The problem is as you say, setting the limits in php and / or nginx (as i use) will limit it globaly.
|
This problem has been in the back of my mind since I started using dolphin, really wish it was something they had taken into consideration when communities really thrive on uploaded media.
My bandaid fix, which I have yet to implement, is to run a cron job and resize all originals to say 1024x768 max. I just haven't perfected it to run on my VPS yet (targeting only the originals is proving difficult) - and it still doesn't solve the issue of the bandwidth used on the front end of uploading the files from the clients end, but with a relatively inactive community I'm too worried about that part yet.
Skype: shawn.nelson |
Not sure on how to do this on membership levels yet, but i believe i found where to set sizes. https://www.deanbassett.com |
I noticed in the flash uploader the file_size so I 'assume' the function are global for all the types of upload methods and all we need is to be able to add a field to each group setting maxupload size.
Problem still exist for normal file upload since you don't know the file size until the file is uploaded to your tmp dir, after that you can detect file size and reject the upload, but then you have wasted some bandwidth.
After all it's a good thing for Boonex to improve Dolphin with.
Simple hate to spend 5 minutes to install dolphin and 3 hours to 'patch' the system for making it better special if the modification is an easy part to 'fix' for boonex in the first place.
|