nextcloud / photos

📸 Your memories under your control
GNU Affero General Public License v3.0
566 stars 62 forks source link

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

Open jarven opened 1 year ago

jarven commented 1 year ago

⚠️ 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?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

MaximeMaW commented 8 months ago

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.

wmproduction commented 8 months ago

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

garrelj1 commented 7 months ago

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