ioweb/module-disable-customer-address-upload

Disable customer address file upload controller in Magento 2.

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:magento2-module

pkg:composer/ioweb/module-disable-customer-address-upload

1.0.1 2026-01-24 09:00 UTC

This package is auto-updated.

Last update: 2026-01-24 09:02:45 UTC


README

Disable the customer address file upload controller in Magento 2 by intercepting Magento\Customer\Controller\Address\File\Upload::execute and returning a 403 response.

Requirements

  • Magento 2
  • magento/module-customer

Installation

Install via Composer (path or VCS repository):

composer require ioweb/module-disable-customer-address-upload

Then enable the module and update the schema:

bin/magento module:enable Ioweb_DisableCustomerAddressUpload
bin/magento setup:upgrade
bin/magento cache:flush

What it does

The module registers an around plugin on:

  • Magento\Customer\Controller\Address\File\Upload::execute

The plugin skips the original controller execution and returns a 403 raw response with a short message.

Uninstall

bin/magento module:disable Ioweb_DisableCustomerAddressUpload

Remove the package from Composer if desired:

composer remove ioweb/module-disable-customer-address-upload