uploading an xlsx file

Permalink Browser Info Environment
When I try to upload an xlsx it tells me it's an invalid file type. I can save the files as the old xls file extension and save it, but I'd prefer to use the new extension. Anyway to remedy this?

Type: Discussion
Status: New
andreadigiorgio
View Replies:
ConcreteConversion replied on at Permalink Reply
ConcreteConversion
Hello! The problem is that concrete5 defines plenty of allowed file extensions but not xlsx unfortunately. To add your own extensions, follow these steps:

1. Open concrete/config/app.php and copy the whole line starting with
Config::getOrDefine('UPLOAD_FILE_EXTENSIONS_ALLOWED'...


2. Paste that line into your config/site.php and replace "Config::getOrDefine" with "define".

3. Add ";*.xlsx" (without quotes) to the end of the long extension list, and other extensions you would like to use of course.

The unfortunate side effect of this is that when the app.php file is updated with more extensions, you'll have to copy them to your site.php config file for each update. Not much to do though until the extensions you need is included in app.php.

Good luck, let me know if you have any questions about this!

/Andreas
andreadigiorgio replied on at Permalink Reply
andreadigiorgio
I don't understand a word of this, but thanks anyway ;)

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.