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

@ViktorPontinen

Description

@ViktorPontinen

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).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions