I want to create a custom attribute for Category, which is File Attribute.

I want to upload any kind of documents in it. Like PDF,txt, doc, etc,.

Anyone helps me to do that via setup Upgrade?

Same like this, in Magento 2

Magento Custom Category Attribute File


I found the solution with the help of the following blog. Here There have tried to create a image category attribute, where us I tried with file PDF option.


In Vendor/Module/etc/di.xml inside allowedExtensions I have added my file formats and I got success in that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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