Page MenuHomePhabricator

importImages.php does not actually upload previously deleted files.
Closed, ResolvedPublicFeature

Description

When you upload a file (same name) to a wiki which was previously deleted the importImages.php script indicates that the upload was successful. But the upload was not successful, only the page in the File: NS was created but the actual file was not uploaded (again).

When you upload the file manually (via Upload File) the user gets a warning that he or she is uploading a previously deleted file, with the "wpUploadIgnoreWarning" button he or she can overrule this blocker.

We use importImages.php to import pictures and files automatically to our wiki. The combination with Semantic Mediawiki makes this a very powerful tool. Would it not make sense to create a --ignorewarning argument for the importImages.php so it is possible to upload previously deleted files with importImages.php? When this is not possible the script should at least not report that the file upload was successful when it was not.

Regards,

Felipe.


Version: 1.21.x
Severity: enhancement
OS: Windows Server 2008
Platform: PC
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=60777

Details

Reference
bz56987

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:34 AM
bzimport set Reference to bz56987.
bzimport added a subscriber: Unknown Object (MLST).
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: wikibugs-l-list.