Problems, need help? Have a tip or advice? Post it here.
7 posts Page 1 of 1
Hey All,

Is it possible to upload a .css file using an editable region with the 'file' type? If not, is there any way to have couch unzip a .zip file that I upload?

Any other way to go about it that you can help me with?

Thanks
---
Hi,

The default file extensions permitted to be uploaded using the 'file' editable region do not include the '.css' extension so out of the box you won't be able to upload a CSS file.

However, you can easily add CSS to list of permitted extensions.
This is how it can be done -
1. Find 'couch/includes/fileuploader/config.php'
2. Find the following setting :$Config['AllowedExtensions']['File']
3. Add 'css' to the array.

Hope this helps.
Do let me know if you require any help.
Ok I've adde 'css' to the array.

Issue now is when I click 'Browse Server' to upload that file, I get an error from my browser (Chrome) saying "The server did not reply with a proper xml data. Please check your configuration."

Thoughts?
That looks like a permission issue.
Please verify that the upload folder (by default 'couch/uploads/file' ) has 'write' permission (i.e. 777).
To add to my previous response - if the error has begun to appear only after you have modified the config file, please check that there is no PHP syntax error.
The comma's always get me...

Works perfectly. Thank you again.
The comma's always get me...

You are definitely not alone :)
7 posts Page 1 of 1