0

My client wants me to add stl file for new product under 'Manage products' tab. But when I attempt to upload the the stl file in images tab, it shows disallowed file type. I configured my Cms/etc/config.xml file like this....

 <extensions>
                    <allowed>
                        <jpg>1</jpg>
                        <jpeg>1</jpeg>
                        <png>1</png>
                        <gif>1</gif>
                        <stl>1</stl>
                    </allowed>
                    <image_allowed>
                        <jpg>1</jpg>
                        <jpeg>1</jpeg>
                        <png>1</png>
                        <gif>1</gif>
                        <stl>1</stl>
                    </image_allowed>
                    <media_allowed>
                        <flv>1</flv>
                        <swf>1</swf>
                        <avi>1</avi>
                        <mov>1</mov>
                        <rm>1</rm>
                        <wmv>1</wmv>
                    </media_allowed>
                </extensions>

I even refreshed and flushed cache and logged out and logged in again to admin panel, but it isn't accepting stl files. Any leads?
ScreenShot

2 Answers 2

2

You should not edit core files since the changes will be lost on the next oficial update, Here is a guide to achieve the same without changing core files.

5
  • I used that file, and it had no effects Commented Jun 10, 2014 at 10:43
  • In the guide I sent you there is no file to use. You should add that to a config.xml in an extension/module, outside the core codepool.
    – mbalparda
    Commented Jun 10, 2014 at 10:53
  • Can you please explain it more clearly? Commented Jun 10, 2014 at 11:12
  • You should create a module and put the code i sent you in the previous link in the config.xml between the config tags in order to make the upload to accept new filetypes.
    – mbalparda
    Commented Jun 10, 2014 at 11:22
  • I did all, and still it isn't working. I've edited the question and added a screenshot for better understanding Commented Jun 10, 2014 at 13:32
1

Create a new module, register it, and add the following into your config.xml:

<?xml version="1.0"?>
<config>
    <adminhtml>
        <cms>
            <browser>
                <extensions>
                    <allowed>
                        <stl>1</stl>
                    </allowed>
                </extensions>
            </browser>
        </cms>
    </adminhtml>
</config>

Log out of admin, flush caches, and when you log back in you should be able to upload stl's.

1
  • I did it, that module is showing on modules page as enabled.... However I'm unable to upload stl file as an image. Commented Jun 11, 2014 at 6:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.