photos icon indicating copy to clipboard operation
photos copied to clipboard

[Bug]: Can not upload files when you create a photo Album if actual "Photos directory" does not exist

Open jarven opened this issue 2 years ago • 3 comments

⚠️ This issue respects the following points: ⚠️

Bug description

Can not upload files when you create a photo Album if actual "Photos directory" does not exist.

Steps to reproduce

  1. Photos > Albums
  2. Add > Create new album
  3. Set Name of the album and Create
  4. Add
  5. Add again in modal
  6. Browse your computer > Select files > Open
  7. Modal flickered, no files listed in modal
  8. "Photos directory" is "/Photos" but this folder does not exist. Create folder "Photos" in root
  9. Repeat step 1-6
  10. Selected files appear in modal, and you can add your files into the Album

Expected behavior

Files should be listed in modal

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • [X] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

jarven avatar Sep 15 '23 11:09 jarven

I am experiencing the same issue. When the directory "/Photos" does not exists, any upload to an album fails.

The console reads: Capture d’écran du 2024-01-27 15-31-22

The image that should be sent is not uploaded: Capture d’écran du 2024-01-27 15-36-19

And the response to the PUT request is:

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\NotFound</s:exception>
  <s:message>File with name //Photos could not be located</s:message>
</d:error>

No error message is displayed in the web interface.

MaximeMaW avatar Jan 27 '24 14:01 MaximeMaW

Same issue with me, any solutions, advices will be welcom ?

wmproduction avatar Jan 27 '24 15:01 wmproduction

I'm seeing the same issue on a fresh install of nextcloud snap

garrelj1 avatar Mar 08 '24 18:03 garrelj1