1
gediminasbyt
Can't upload Images

# XOOPS Version : XOOPS 2.0.16
# XOOPS Theme : default
# XOOPS Template Set : default
# PHP Version : 5.1.2
# MySQL Version : 5.0.24a-standard-log
# Server Software : Apache/2.0.54 (Unix) PHP/4.4.4 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.3.2
# User's Browser : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

In Admin->Images created new category (the only one) with max 100000 bytes and 800x800 try to upload 100x100 image and get error:
File width must be smaller than 80
File height must be smaller than 80

Tried to recreate folder with both file and db storage and always same results. There are 2 tables in DB that I can't track down to what module had created and uses them. These 2 tables are not in another XOOPS install.

xoops_mimetypes
xoops_mimetypes_perms

xoops_mimetypes has 80 mimetypes, however perms is kind of confusing and has only 12 entries

mperm_id mperm_mime mperm_module mperm_groups mperm_status mperm_maxwidth mperm_maxheight mperm_maxsize
1     8     1     1     1     80     80     35000
2      8      1      2      1      80      80      35000
3     15     1     1     1     80     80     35000
4     15     1     2     1     80     80     35000
5     21     1     1     1     80     80     35000
6     21     1     2     1     80     80     35000
7     22     1     1     1     80     80     35000
8     22     1     2     1     80     80     35000
9     23     1     1     1     80     80     35000
10     23     1     2     1     80     80     35000
11     39     1     1     1     80     80     35000
12     39     1     2     1     80     80     35000


When I changed the max size to 800x800 and size to 350000 I was able to upload files in ImageManager. Does anybody have an idea where and by what these two tables are controlled by? I've checked and debuged and there is nothing that would show the source of the problem.

I've rechecked every hack that was made to site and everything does look the same. There aren't that many hacks and I've tried disabling most of them by reverting to original files.

From other modules I do get error:
Errors Returned While Uploading
Error loading mimetypes definition

2
gediminasbyt
Re: Can't upload Images

Finally I did figure out on what is going on (partially). The mimetypes_perms file is controlled by xoopsinfo module and does not matter if you do enable in the module itself these extensions you must also check within xoopsinfo. I don't get it why do you have to define the same thing in 2 places? I still do have some problems uploading.Certain mime types as it does look like in one place image/png is not the same somewhere else...

Just curious is this the default/designed behavior of xoopsinfo?

Login

Who's Online

335 user(s) are online (244 user(s) are browsing Support Forums)


Members: 1


Guests: 334


Mamba,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits