WordPress.org

Make WordPress Core

Opened 9 months ago

#24934 new enhancement

More flexible response reporting in wp-plupload.js

Reported by: ippetkov Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.6
Component: Upload Keywords: has-patch
Focuses: Cc:

Description

The wp-plupload.js wrapper to the plupload library only returns server responses to bound callbacks in the case of a well formed error (the server responds with { success: false } ).

Sometimes it may be useful to receive additional information from the server on successful upload. I have prepared a patch that allows for the success and error callbacks to receive server responses.

Attachments (1)

24934.diff (1.0 KB) - added by ippetkov 9 months ago.

Download all attachments as: .zip

Change History (1)

ippetkov9 months ago

Note: See TracTickets for help on using tickets.