[Bug]: Can not upload files when you create a photo Album if actual "Photos directory" does not exist
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
Can not upload files when you create a photo Album if actual "Photos directory" does not exist.
Steps to reproduce
- Photos > Albums
- Add > Create new album
- Set Name of the album and Create
- Add
- Add again in modal
- Browse your computer > Select files > Open
- Modal flickered, no files listed in modal
- "Photos directory" is "/Photos" but this folder does not exist. Create folder "Photos" in root
- Repeat step 1-6
- 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
I am experiencing the same issue. When the directory "/Photos" does not exists, any upload to an album fails.
The console reads:
The image that should be sent is not uploaded:
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.
Same issue with me, any solutions, advices will be welcom ?
I'm seeing the same issue on a fresh install of nextcloud snap