[wp-trac] [WordPress Trac] #50612: Cancelling a plugin update from an uploaded .zip file leaves the plugin .zip in the uploads directory
WordPress Trac
noreply at wordpress.org
Thu Jul 9 21:18:45 UTC 2020
#50612: Cancelling a plugin update from an uploaded .zip file leaves the plugin
.zip in the uploads directory
-----------------------------+-----------------------
Reporter: psykro | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.5
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+-----------------------
Comment (by azaozz):
Replying to [comment:7 psykro]:
> Forgive me for jumping the gun here
Ah, no problems, thanks for reporting this! :)
There will probably be more left-over files now, as users would cancel
updates or navigate away from the "update from uploaded zip" screen.
There is another possible edge case: when a user leaves the update from
uploaded zip screen open for more than two hours, the file will be
"cleaned up". Can perhaps add some js to block the screen when left unused
for a while, and ask the user to upload the file again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50612#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list