Cannot delete photo from within the photo preview

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 25.0.4
Operating system and version (eg, Ubuntu 20.04): Linux 5.19.17-Unraid
Apache or nginx version (eg, Apache 2.4.25): nginx/1.22.1 (fpm-fcgi)
PHP version (eg, 7.4): 8.1.16

The issue you are facing:
Can’t delete a photo or video from within the preview mode.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. From the “All media” view, click any photo to view it.
  2. Click the “…” in the top, right-hand corner > select “Delete”
  3. Receive the following error: “AxiosError: Request failed with status code 404”

The output of your Nextcloud log in Admin > Logging:

[webdav] Debug: Sabre\DAV\Exception\NotFound: File with name //files could not be located at <<closure>>

 0. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 78
    OCA\DAV\Connector\Sabre\Directory->getChild()
 1. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 73
    Sabre\DAV\Tree->getNodeForPath()
 2. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 73
    Sabre\DAV\Tree->getNodeForPath()
 3. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 73
    Sabre\DAV\Tree->getNodeForPath()
 4. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 73
    Sabre\DAV\Tree->getNodeForPath()
 5. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 73
    Sabre\DAV\Tree->getNodeForPath()
 6. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAVACL/Plugin.php line 601
    Sabre\DAV\Tree->getNodeForPath()
 7. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAVACL/Plugin.php line 199
    Sabre\DAVACL\Plugin->getCurrentUserPrivilegeSet()
 8. /config/www/nextcloud/apps/dav/lib/Connector/Sabre/DavAclPlugin.php line 52
    Sabre\DAVACL\Plugin->checkPrivileges()
 9. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAVACL/Plugin.php line 913
    OCA\DAV\Connector\Sabre\DavAclPlugin->checkPrivileges()
10. /config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAVACL\Plugin->beforeUnbind("*** sensitive parameters replaced ***")
11. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 278
    Sabre\DAV\Server->emit()
12. /config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpDelete()
13. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
14. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
15. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
16. /config/www/nextcloud/apps/dav/lib/Server.php line 360
    Sabre\DAV\Server->exec()
17. /config/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
18. /config/www/nextcloud/remote.php line 171
    require_once("/config/www/nex ... p")

DELETE /remote.php/dav/files/shane/files/shane/Photos/2023-03-10%20-%20Shane's%20iPhone/2023/03%20March/23-03-10%2009-43-26%202066.mp4
from 172.70.126.163 by shane at 2023-03-20T21:36:11+00:00