I don't know if that belongs here ore more to the file plugin but I really need an option to restrict image filesize and dimensions on upload to prevent users from uploading huge images.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Karsten Schulze@laurin

Karsten Schulze - 0 likes
- Dahaniel@Dahaniel

Dahaniel - 0 likes
- Dahaniel@Dahaniel

Dahaniel - 0 likes
- Gabriel Monge-Franco@gabrielinux

Gabriel Monge-Franco - 0 likes
- alfalive@alfalive

alfalive - 0 likes
- Gabriel Monge-Franco@gabrielinux

Gabriel Monge-Franco - 0 likes
You must log in to post replies.I don't know if this is what are you looking for - Have a look at .htaccess in the community root directory:
# php 5, apache 1 and 2
<IfModule mod_php5.c>
# default memory limit to 64Mb
php_value memory_limit 64M
# to make sure register global is off
php_value register_globals 0
# max post size to 8Mb
php_value post_max_size 8388608
# upload size limit to 5Mb
php_value upload_max_filesize 5242880
# hide errors, enable only if debug enabled
php_value display_errors 0
</IfModule>
I am looking for a bit more, I would also like to set a quota per user. I would also like to set different maxsizes for files different from images.
And the best of all would be to resize images automatically during the upload to given dimensions (e.g. 800x600), or afterwards and then delete the original files.
I think @studivz.net they use a java uploader for this resize thing.
@Dahaniel, do you know where to find this java applet or a similar GPL application/script? It would be great implement auto-resizing in both Tidypics and the File plug-in.
@Gabriel Monge-Franco
yes I think also too.
I found a way to do this after uploading the pictures on the server side. It will be part of version 1.08.1.