By riz on
When I upload image (jpg) for file an authenticated user, the error message comes "The uploaded file was not an image". While I have (jpg jpeg gif png txt html doc xls pdf ppt pps) extensions permitted in admin>>settings>>upload.
Another trouble: I have set a default picture. User profile picture dimensions at admin>>settings>>users doesnt work despite setting it as (85x85) or (85*85).
any help highly appreciated.
regards
Comments
Changing User.module helps but...
Nobody replied to the problem posted. Well I digged into user.module code and disabled these lines of code in user_validate_picture(...) function.
if (!$info || !$info['extension']) {
form_set_error('picture_upload', t('The uploaded file was not an image.'));
}
It works fine now but can anyone make me understand what was happening when it didnt work?
I am looking for a more valid solution.
regards