Fork me on GitHub

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support for Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Current releases are 2.1.3 (9 Sept 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

Bug Fix for XLXS and DOCX

edited September 2010 in Vanilla 2.0 Help
This discussion is related to the FileUpload addon.
I ran into a problem not being able to upload xlxs and docx files. The garden_Media.Type column is limited to 64 characters and php for these files was returning something like:

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Which is 65 characters.

The fix is to change the column type to 128 characters and change line 520 in class.fileupload.plugin.php from:

->Column('Type', 'varchar(64)')

to

->Column('Type', 'varchar(128)')
Tagged:

Comments

Sign In or Register to comment.