Self Checks
Cloudreve version
4.14.1
Pro or Community Edition
Community (Open Source)
Database type
MySQL
Browser and operating system
Chrome 145.0.0.0 on Windows 10
Steps to reproduce
- I bound a Cloudflare R2 storage instance to my storage policy, treating it as an "S3 storage." Upload and download functions worked correctly after testing.
- After binding, I changed the Blob storage directory to / (root directory). I found that existing files in the storage policy weren't synced; only files uploaded from Cloudreve to Cloudflare later showed up.
- After further investigation, I used the "Import External Directory" function in the "File" menu, which caused a problem.
✔️ Expected Behavior
All folders and files synced normally, without problems.
❌ Actual Behavior
Problem: After importing, only a folder with a purely numeric name was synced correctly; all other folders became 0kb files. Clicking download also resulted in a 0kb file named after the folder directory.
After importing, I was hesitant to delete the imported files because Cloudreve warned that this would affect the original files. I also tried this. I created a folder with a numeric name in the Cloudflare R2 control panel and adjusted the "Recursive Import Subdirectories" and "Extract Media Information" options.
However, the synced files were still 0kb files. Deleting these 0kb files in Cloudreve
did indeed affect the files in the R2 storage (so I dared not blindly delete other 0kb files that originally had folders). I then tried creating a new user and adjusting the "Recursive Import Subdirectories" and "Extract Media Information" options again, but the problem persisted.
PS:The first image shows the folders to confirm they are indeed folders in R2.
The second image shows the 0kb files that were imported incorrectly.
The third image shows the only folder that was imported correctly.
The fourth and fifth images show the browser downloading the 0kb files.
Addition context information
No response
Self Checks
Cloudreve version
4.14.1
Pro or Community Edition
Community (Open Source)
Database type
MySQL
Browser and operating system
Chrome 145.0.0.0 on Windows 10
Steps to reproduce
✔️ Expected Behavior
All folders and files synced normally, without problems.
❌ Actual Behavior
Problem: After importing, only a folder with a purely numeric name was synced correctly; all other folders became 0kb files. Clicking download also resulted in a 0kb file named after the folder directory.
After importing, I was hesitant to delete the imported files because Cloudreve warned that this would affect the original files. I also tried this. I created a folder with a numeric name in the Cloudflare R2 control panel and adjusted the "Recursive Import Subdirectories" and "Extract Media Information" options.
However, the synced files were still 0kb files. Deleting these 0kb files in Cloudreve
did indeed affect the files in the R2 storage (so I dared not blindly delete other 0kb files that originally had folders). I then tried creating a new user and adjusting the "Recursive Import Subdirectories" and "Extract Media Information" options again, but the problem persisted.
PS:The first image shows the folders to confirm they are indeed folders in R2.
The second image shows the 0kb files that were imported incorrectly.
The third image shows the only folder that was imported correctly.
The fourth and fifth images show the browser downloading the 0kb files.
Addition context information
No response