Make WordPress Core

Opened 12 years ago

Last modified 7 years ago

#23188 new defect (bug)

Hardcoded relative url 'async-upload.php' in plupload/handlers.js

Reported by: drozdz's profile drozdz Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.5
Component: Upload Keywords: needs-patch
Focuses: Cc:

Description

On line 127 in plupload/handlers.js you can find relative path to 'async-upload.php'.

It rather should use wpUploaderInit.url (or something like that), so you could use WP Plupload in front-end for example or with your custom uploading scripts.

Now you can write your custom uploader script and provide it via wpUploaderInit, but on that line in handlers.js it is ignored (and if you run it in front-end, bad request to ./async-upload.php is made).

Change History (4)

#1 @scribu
12 years ago

  • Component changed from General to Upload

#2 @kovshenin
12 years ago

  • Cc kovshenin added

#3 @chriscct7
9 years ago

  • Keywords needs-patch added

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


7 years ago

Note: See TracTickets for help on using tickets.