Opened 3 years ago
Closed 3 years ago
#11933 closed enhancement (fixed)
Add filter/action to change form on profile page to enctype="multipart-form/data"
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | General | Version: | 2.9.1 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
Description
As already discused three years ago(#3890), it would be great to change the enctype to multipart to allow easier integration of file upload at the backend. There are some plugins which change it on the fly with javascript, but I think it would be a lot cleaner to just have a filter/action for it.
Also see discussion here: #10518
As wp moves on to a fully featured cms, it should support an easy way to add additional files associated with users.
Attachments (1)
Change History (6)
comment:1
sivel
— 3 years ago
- Keywords has-patch dev-feedback added; multipart form profile upload files removed
comment:2
nacin
— 3 years ago
- Keywords commit added; dev-feedback removed
I can't come up with a better way to do this, looks good.
comment:3
Denis-de-Bernardy
— 3 years ago
We might as well add the same for terms and links, if we do this.
comment:4
Denis-de-Bernardy
— 3 years ago
terms and links are a can of worms. let's get this in 3.0 and worry about the other ones in 3.1.
Patch adds do_action to form tag of user_new.php edit_user.php and edit-form-advanced.php.
I have seen numerous requests to do this for the post edit form on IRC so figured I'd throw it in here too.