Magento 2 customizable options – allow any file upload via Rest API

Magento 2 custom options allows you to add file upload option to product. So on frontend customer is able to attach a file to product when placing an order.

Recently I have discovered that it is not possible to upload file other than image via Rest API. In the code below I suggest a sample Plugin code that allows you to overcome this restriction.

Continue reading “Magento 2 customizable options – allow any file upload via Rest API”

Debugging PHP app using Xdebug and Remote Docker PHP Container

No so long ago I’ve started using Docker as my primary development environment. Before that I had everything (WEB-server, PHP, MySql, etc) installed on my Mac and being run natively. Docker brings more flexibility and it is just fun. So now my setup includes Mac OS with PhpStorm installed and remote Ubuntu server running Docker containers needed for my WEB application.

Docker Development Environment

Continue reading “Debugging PHP app using Xdebug and Remote Docker PHP Container”