WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 2 months ago

#24603 new enhancement

Introduce pre_move_uploaded_file filter to allow pre-processing of uploaded files

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

Description

This is handy for use in file replication plugins. We've been using this on wordpress.com for awhile for just that purpose.

Attachments (4)

24603.diff (961 bytes) - added by ryan 3 years ago.
24603.patch (872 bytes) - added by Mte90 3 months ago.
refreshed patch
24603.2.patch (1.3 KB) - added by Mte90 3 months ago.
working refreshed patch
24603.3.patch (1.5 KB) - added by Mte90 2 months ago.
added docs

Download all attachments as: .zip

Change History (10)

@ryan
3 years ago

#1 @chriscct7
15 months ago

  • Keywords needs-refresh needs-docs added

@Mte90
3 months ago

refreshed patch

@Mte90
3 months ago

working refreshed patch

#2 @Mte90
3 months ago

  • Keywords dev-feedback added; needs-refresh removed

Ignore the 24603.patch this is a wrong testing patch, the real refreshed patch is 24603.2.patch.

#3 @Mte90
2 months ago

  • Keywords has-patch added

This ticket was mentioned in Slack in #docs by morganestes. View the logs.


2 months ago

#5 follow-up: @johnbillion
2 months ago

  • Keywords dev-feedback removed

@Mte90 Can you add a docblock for the new filter please?

@Mte90
2 months ago

added docs

#6 in reply to: ↑ 5 @Mte90
2 months ago

  • Keywords needs-docs removed

Replying to johnbillion:

@Mte90 Can you add a docblock for the new filter please?

Done, I don't know if I written in the best way.

Note: See TracTickets for help on using tickets.