Loading...
 
Skip to main content

Features / Usability


File Gallery Write Issues

So I have a new install of tikiwiki 3.0 and I wanted to set up some file galleries for large-ish files. I can't seem to get it to work correctly.

If I set up the gallery to "Use database to store files" it works, but I cannot upload files more than 10 megs (I do not have access to the php.ini file so I can't change this, I think). If I "Use a directory to store files", whenever I try and upload something I get this error: "Cannot write to this file:..."

If I try a batch upload while using a directory to store files, all I get is "!!!" and nothing happens, and if I try a batch upload using the database I get:

"Upload was successful: XXXX.pdf !!! Impossible to remove file XXXX.pdf from Batch directory."

Those files are readable and good but I again cannot upload more than 10 megs. I need to. What am I doing wrong here? I especially want the directory upload to work so I can upload larger files.

PS: I also tried adding to the .htaccess file to my wiki directory with the sample .htaccess from this help pageQuestion and nothing changed with the upload limit.

I cannot speak of problems with storing files in a directory, but for storing files in the database, make sure that you have set the max_allowed_packet in my.cnf or my.ini to larger value than your files size.

Please note that by default, the value is set to 1M and it is not explicitly included in the config file. So you will have to add that line yourself.


> If I "Use a directory to store files", whenever I try and upload something I get this error: "Cannot write to this file:..."
THe directory will be writeable by the server - if you do not know exactly the group put a read/write for everybody on the directory

>.htaccess
Some hostings do not give access - be sure not to have the if mod_php4... because if you have php5 it will not work - reread the instruction in the help page