Loading...
 
Features / Usability

Features / Usability


Can't attach a file > 1MB

posts: 3

Fairly out-of-the-box install of tikiwiki on a windows machine, with the exception that I used xammp to install apache/mysql/php, rather than the easy-whatever that was mentioned in the tikiwiki install docs.

I can attach a smaller file to a wiki page, but when I try to attach a file around the 1 MB range, I get what you see in the attached image (hopefully I sent that correctly). It's as if it goes into a loop of the page including itself over and over until the windows machine tells me that apache has crashed.

I made sure that post_max_size = 16M and upload_max_filesize = 16M for php.ini, and I threw ))LimitRequestBody(( 0 in the directory's .htaccess just to be sure. Memory is 16M, etc. The drive has 23G available, and I know the attachment process at least works for the small files.

posts: 2881 United Kingdom

Hi,

Are you the same spin as I was talking to in IRC on the other channel?

Sounds like the MySQL is not allowing the 1Mb file to be inserted into the database.

Damian

posts: 3

You were right! Figured I'll post this for the benefit of future generations...

max_allowed_packet is set to 1M by default. I increased it to 4M, it worked fine.

For extra fun, I guess Windows has reserved the .cnf extension (at least on my machine, anyway) and it was coming up as a shortcut called "my". I had to edit it in dos, because I couldn't get a windows editor to recognize it as a file unto itself.

Though the looping thing is probably still a bug, tw should handle a server disconnect more gracefully than that.


posts: 3

I wasn't, no.

But if it's not allowing the file to be inserted, 1) why? I can't imagine mysql has a 1MB limit for a 4GB field, and 2) why would it cause this looping rather than a straight error?

And for the bonus round, 3) Any idea how I can slap it into shape?


Upcoming Events

1)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6) 
Tiki birthday
7)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
8)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting