Hi there!
I want to make it so that attachment automatically get resized to their max. allowed size instead of print an error message like 'this image is too large'.
Here are my thoughts: The userpictures already get resized so I just need to extend the datamanager for fileuploads with the functions from the datamanager for userpicture uploads.
You'll find both classes in
class_upload.php. I copied the (in my eyes) special parts from the userpic class to the attachment class but my images still don't get resized..
Now Iam stuck: I don't find the function which actually resizes the images.. It must be hidden somewhere