00598: add possibility to delete attachments

Summary: add possibility to delete attachments
Created: 2005-11-18 10:37
Status: Discussion / votes
Category: Feature
From: Blues
Assigned:
Priority: 55555 55555 55555 44443
Version: 2.0.12
OS:

Description: add possibility to remove attachments

See also:

User Comment: This would be a very useful feature, particularily if you didn't have to do it page-by-page. My site consists of hundreds of pages, and just as many attachments. I wish there was a way for PmWiki to automagically find orphaned attachments, and delete them automatically accross the entire site (or show a list of those with a check-mark next to the ones you want to delete). Mass administration .. what a concept huh? :-) SL


I dig this, though I feel like this sort of capability should include the addition of the ?action=delete into the Core of PmWiki. I know that it sure doesn't do anything for site security, but an easy way to take care of deletions would do wonders for my fingers' health.


Is Cookbook.Attachtable enough of a fix for this that this could be closed, or should some of this functionality be in the core? —Eemeli Aro June 26, 2009, at 06:37 AM

IMO some features from Cookbook.Attachtable should be in the core: Delete, rename, and especially reference count to find missing and orphaned files OliverBetz July 09, 2009, at 06:03 AM
Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n
    [$_SERVER] => Array
        (
            [CONTEXT_DOCUMENT_ROOT] => /home/pmwiki/public_html
            [CONTEXT_PREFIX] => 
            [DOCUMENT_ROOT] => /home/pmwiki/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTPS] => on
            [HTTP_ACCEPT] => */*
            [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
            [HTTP_HOST] => www.pmwiki.org
            [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
            [HTTP_X_HTTPS] => 1
            [PATH] => /bin:/usr/bin
            [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php70/root/etc:/opt/cpanel/ea-php70/root/etc/php.d:.
            [QUERY_STRING] => n=PITS%2f00598
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=PITS%2f00598
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00598
            [REDIRECT_SCRIPT_URL] => /wiki/PITS/00598
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afJ27bi4TCwydKZag7JGQAAAAQ8
            [REDIRECT_URL] => /wiki/PITS/00598
            [REMOTE_ADDR] => 216.73.216.31
            [REMOTE_PORT] => 39744
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/PITS/00598
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00598
            [SCRIPT_URL] => /wiki/PITS/00598
            [SERVER_ADDR] => 23.254.203.248
            [SERVER_ADMIN] => webmaster@pmwiki.org
            [SERVER_NAME] => www.pmwiki.org
            [SERVER_PORT] => 443
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [SSL_TLS_SNI] => www.pmwiki.org
            [TZ] => America/Los_Angeles
            [UNIQUE_ID] => afJ27bi4TCwydKZag7JGQAAAAQ8
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777497837.7673
            [REQUEST_TIME] => 1777497837
            [argv] => Array
                (
                    [0] => n=PITS%2f00598
                )

            [argc] => 1
        )

)