Topic on Project:Support desk

How To Purge Files on Delete?

4
Johnywhy (talkcontribs)

On Special:Upload, when i try to upload a file that was previously deleted, i receive a warning.

Warning: A file by that name has been deleted or moved.

The warning offers "Ignore warning and save file anyway"

That's fine. But, in page source-edit, when i try to re-upload a deleted file, i do NOT get the option to "Ignore warning and save file anyway".-- i'm simply blocked from uploading the file.

How can i purge deleted files, so they can be re-uploaded immediately after deletion?

Is there a file-expiration setting i can add to LocalSettings.php?

This, that and the other (talkcontribs)

That's interesting. Can you take me through the exact steps you are taking in the page-source editor to upload the file? (as in, exactly which buttons you are clicking, what you type, etc)

Johnywhy (talkcontribs)
  1. Click "Edit Source".
  2. Click "Embedded file" button.
  3. Click "Upload" button.
  4. Click "Select a file" button, and pick previously uploaded-and-deleted file.
  5. Check "This is my own work", and click "Upload" button.
  6. Enter Description and click "Save" button.
  7. Receive error:
    Something went wrong. A file with this name exists already, please check https://gunsense.xyz/index.php/File:Gun-deaths.jpg  if you are not sure if you want to change it.
  8. Click "Dismiss".
  9. "Save" button is now grayed out. No option given to "Ignore warning and save file anyway"
This, that and the other (talkcontribs)

Reported at phab:T190913. I have a funny feeling this is already tracked under another task, but I couldn't find one.

Reply to "How To Purge Files on Delete?"