Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #37887, comment 11


Ignore:
Timestamp:
01/14/2017 03:17:06 AM (8 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37887, comment 11

    initial v1  
    2222No, its not. This is how uploading works in WordPress and is the simplest, most logical way. Look at uploading images on draft posts. If this is ever changed for posts, we can use the same workflow in the customizer, but I don't think the workflows should be different.
    2323
    24 Also auto-deleting uploaded files in some specific cases will always be bad UX. We will be guessing what the user intent may be and will definitely get it wrong in some cases. (And, well, we will be deleting files which is a non-recoverable action. What if the user doesn't realize the file was deleted and deletes the original from their computer. Then after a few days... ''my file is missing!!! WordPress ate my homework!!!'', etc.).
     24Also auto-deleting uploaded files in some specific cases will always be bad UX. We will be guessing what the user intent may be and will definitely get it wrong sometimes. (And, well, we will be deleting files which is a destructive action. What if the user doesn't realize the file was deleted and deletes the original from their computer. Then after a few days... ''My file is missing!!! WordPress ate my homework!!!'', etc.).
    2525
    2626There is also the fact that uploaded files cannot ever be 100% private as the wp-content/uploads directory is publicly accessible. This is the main reason there is no "trashed" state for attachments. To make this 100% the files have to be moved above the web server root.