Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Missing [file] on line 355 in attachments controller #1303

Description

@vitld

Hello,

Not sure if this is intended. Was having issues uploading in media endpoint and found that the code on line 355 was looking like this:

$file = wp_handle_upload( $files, $overrides );

Changed it to:

$file = wp_handle_upload( $files['file'], $overrides );

Which fixed uploading issues for me(using form-data).

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions