Skip to content

[5.x]: Front end save-user not uploading to asset fields #15511

@iamtompickering

Description

@iamtompickering

What happened?

Description

This issue only seems to be happening since updating to 5.3.

The following form is not uploading the image I add to the file input to the asset field in the CMS. It creates the asset, but does not link it up to the field headerImage

<form method="post" accept-charset="UTF-8" enctype="multipart/form-data">
    {{ csrfInput() }}
    {{ redirectInput(url(craft.app.request.getPathInfo, { notification: 'profileUpdated' })) }}
    <input type="hidden" name="action" value="users/save-user">
    <input type="hidden" name="userId" value="{{ currentUser.id }}">

    <input type="file" name="fields[headerImage][]">
    <input type="submit" value="Submit">
</form>

This was working absolutely fine whilst running a 5.2.x version

Craft CMS version

5.3.1

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions