Loading...
 
Features / Usability

Features / Usability


New File Gallery Quota Feature in 4.1 Breaks Unzip Feature When Using Database

United States

I have documented this bug elsewhere, but want to see if anyone else has any ideas.

In Tiki 4.1, when the File Gallery feature is configured to store files in the MySQL database (rather than a file directory) and the new File Gallery Quota feature is left to it's default values (or any values for that matter),...

it is no longer possible to upload a zip file and - at the same time - unzip the contents into the selected "directory". A hack to "filegallib.php" - documented in the bug tracker mentioned above - circumvents the new quota feature and allows uploading and unzipping to be restored. Uploading multiple files one at a time is broken with the hack, though.

The "filegallib.php" file in 4.1 has been changed a lot since 3.3, especially in the "process_batch_file_upload" function.

If anyone knows of a cleaner hack/fix, I'd appreciate any help.

Catalan Countries

hi edmund.

Workaround: use file system instead.

Sylvieg recently coded the feature to move from db to file system for file galleries. It's in branch proposed/4.x, so it will be available in 4.2 (whenever it gets released), or you can apply the changes manually to yor site to have this improvement.

See dev:Download for links to get code from subversion.

HTH


United States

Xavi:

Thanks. Yes it does help.

Question...__is the option to store files directly
in the database completely going away in favor of
the file system option?__

If so, I need to do some serious data migration to
adjust for this change.

Thanks again,

-Ed


Catalan Countries

no, both systems will be supported (files in db or in file system). Both have their advantages and disadvantages
Cheers


Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.