ADSoftworks / HMS

Homework Management System (HMS) is a product designed to improve the organizational impact on students and teachers when managing, deploying, and orientating homework or goals.
Other
3 stars 1 forks source link

File size checking #2

Closed bobdesaunois closed 10 years ago

bobdesaunois commented 10 years ago

Files that are uploaded aren't checked if they might just be a bajillion gigabytes. I could definitely see this being a problem.

samaten commented 10 years ago

Definitely. I'd suggest an adjustable limit via the admin panel. That way admins can readjust the limit; which would make it more flexible when we distribute the software.

bobdesaunois commented 10 years ago

Oh I like that, definitely going to do that, this is good stuff!

bobdesaunois commented 10 years ago

Couldn't implement /properly/ because of limits on PHP ini setting through code. However I was able to do it through setting php_value's in the .htaccess. This isn't how we imagined it, but it certainly is a way.

It works and denies bigger files than the limit it just doesn't properly error. So that's all that's left to do.

bobdesaunois commented 10 years ago

A proper error is now displayed when a file is bigger than the set limit.