Hello,
I have created a custom category image upload attribute following this post: https://magento.stackexchange.com/a/139648
I got everything working on my local MAMP server as expected. When I pushed the code to our staging server and tried to upload an image I get the error:
Attention
$_FILES array is empty
I have found several articles mentioning that adding <'enctype' => 'multipart/form-data'> to the form factory would be a solution but it is never listed on where to place that code. For example:
https://magento.stackexchange.com/questions/124662/file-array-empty-in-magento-2-while-uploading-fil...
Looking for where to place the <_formFactory->create()> code or any advice on how to resolve this issue. Thank you!
EDIT: The issue was with our development server settings, nothing regarding Magento. Issue has been resolved.