I have a problem with a plugin that I am doing.
I have been removing things and more things to simplify and isolate the problem.
I don't know how to fix it. The problem is that $ _FILES is an empty array after uploading an image.
The main code is in the attached file, but you can download the test plugin from:
https://drive.google.com/open?id=18HvIkWq0rRfgS1rhG_eGvb2oXzsn3MfS
Do not install anything, do not create tables in the database, do not add keys in the language file ... Only have the minimum to see this problem.
Any help would be appreciated.