ulpoad file truncate
Posted: 18 Dec 2009, 14:25
Hello.
I have a question which i described in another Topic, but I will make a new one to make it separate.
When user is uploading the photo which res is bigger than the setup. The file is cut to the limit. It means that when I upload file for example 3000x2000pix and the limit is 1920x1920. The smaller size is resized to 1920 and then the file is cut to the sqare.
Why the error is not working?
I checked the php code for file fileupload.php
I don't know php at all but there is a section which is checking the size, but I didn't find any code for the file resize and cut.
Another question is the function "get"
In this line: $maxResWidth = $params->get( 'upload_maxres_width', 3072 );
the 3072 is the default value?
maybe this get is not working well and setting the maxres here will work?
best regards
g.
I have a question which i described in another Topic, but I will make a new one to make it separate.
When user is uploading the photo which res is bigger than the setup. The file is cut to the limit. It means that when I upload file for example 3000x2000pix and the limit is 1920x1920. The smaller size is resized to 1920 and then the file is cut to the sqare.
Why the error is not working?
I checked the php code for file fileupload.php
I don't know php at all but there is a section which is checking the size, but I didn't find any code for the file resize and cut.
Another question is the function "get"
In this line: $maxResWidth = $params->get( 'upload_maxres_width', 3072 );
the 3072 is the default value?
maybe this get is not working well and setting the maxres here will work?
best regards
g.