For a new type of profile field that I am working on ("Image Upload Profile Field"), I need to upload files from the local user storage.
To use it, the HTML form must include the correct "enctype" clause.
In certain places, it is already present, hardcoded (
acp_users_avatar.html) or in a template variable (
But there are other places where none of these options is available:
The only viable option here is to modify the ACTION URL template variable to include enctype: ugly, dangerous and incorrect.
So, the only possibility is to fix the core. Given that this is not a request for an Event, I though we should discuss it here. I will create the patch, with whatever the resolution we take here is.
In my opinion, hardcoding in the ACP is not that bad, and it is much easier and cleaner in all respects. For the UCP, the variable option is already present. So that is my preference, to get started with the discussion.
The ticket in the tracker: https://tracker.phpbb.com/browse/PHPBB3-13934