-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot upload empty folder via web interface #11864
Comments
GitMate.io thinks possibly related issues are #5053 (Can't delete an empty directory from the web interface), #11366 (Upload of folders in IE via web does not work anymore), #4243 (cannot delete files in upload-only folder), #4604 (Upload via public folder fails), and #6339 (Cannot mass upload folders with files (upload share)). |
Hi, please show us some logfiles ... Nextcloud / Apache Log |
There are no error logs in Nextcloud (lvl debug)/Apache. |
Can you use another pc to test that? |
Sure - tested on Windows 10 (Chrome, Firefox) and Ubuntu 18:04 (Chrome, Firefox too) - same problem here. |
That is in case strange, do you have maybe error logs from PHP-FPM? Can you test that with the Nextcloud Software for Windows 10 I tested it right now on my imac without problems / errors. |
Nextcloud client on Windows 10 can create empty folder, this is related only in browser. No errors in php-fpm. |
Hi, i can reproduce this "problem". Seems like its a "security feature". You can simply add a .txt file into the folders to upload them, that should fix that. |
What it means security feature please? When it is a security feature, there will might be a info warning like this "you cannot upload empty folder..." |
@tomtomas99911 i dont really know why. You can create over the Software Folders - over the webinterface too (with dropdown menu). But i dont know why you cant uplaod empty folders over the webinterface (Drag & Drop). |
If you drag & drop a whole tree containing empty folders, those are not taken into account. Furthermore, it is recursive so that if folder A contains only one object as empty folder B, folder B is not picked in the copy and, as a result, folder A becomes empty as well and is not copied ether. You may try this way: First, you build a tree on you're desktop, outside Nextcloud like this ├── folder-A Then you may copy all these 5 folders using drag&drop: ├── dossier-A What is done is this: ├── folder-A (*) recursivity: becomes empty since subs are not picked With the following final result in NC after copying is done: ├── folder-A I have tried on NC 14.0.4 and NC 15.0.4 |
I know how to do it manually, thank you! :). But BFU users, are accustomed to this function. If you want to upload empty folder structure (or normal forlder structure with some empty folder) you can do it on other cloud solutions (e.g. Google Drive). And when BFU upload folder with drag&drop they are expecting that everything which is in that folder will be uploaded (including folder structure [empty or not]) especially when there is no error reported during upload. |
The clearer is the better, right ? I don't think this should be considered as a feature to deal with, regardless the kind of users your Nextcloud proudly serves. I kwow Google, Dropbox, MS etc. are doing go thing for the user world; still I keep interested in these alternatives that give you the opportunity to keep your data warmly at home. Plus, Nextcloud does not deserve to give up and drop it for Google & Co at the first glitch, does it ? Since your second point sounds rather opposite to the first one, this is where we meet: if you import a entire tree into you Nextcloud, you trust the system to do exactly what you asked him to do (at most, you could have a setting to say whereas you want to filter empty folders during copy or to take the whole thing whatever it cost). |
This bug, and (worse) #14506 bug make Nextcloud pretty useless for many cloud users who expect that this functions work perfect. Especially because Nextcloud isn't something new, but very mature cloud system. |
Any news here? Nextcloud 16 still has this bug. |
Still nothing? (I've just tried on NC 16.0.4 and the bug is still here) |
just confirmed with 17.0.1 and 18.0.0 Beta 2 |
But 17.0.1. is out before some time and still do not work?!? maybe confirmed for 17.0.2? |
No no, misunderstanding: I could confirm (aka reproduce) the issue with 17.0.1 and 18b2! |
Ah, right! :) |
I totally agree that this is bad behavior. With 17.0.2/18.0.0 it's not gonna be able to get addressed, but let's see what's possible after that. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think that Nextcloud deserves better upload engine including option for uploading whole folder at once. Not only by drag&drop routines. And it is very strange to me that some cloud service as Nextcloud has disadvantage like impossibility to upload empty folder tree. This is a bug - an enormous one! |
We have the same problem on 20.0.9, on Windows / Linux Chrome & Firefox:
and nextcloud.log:
So nothing in the logs for the empty folders. |
as far as I remember this is likely a limitation in the browser's API and that the empty folders are not exposed but only files not sure if this has improved with recent browser APIs, needs some research |
would need to debug in the caller of https://github.com/nextcloud/server/blob/master/apps/files/js/file-upload.js#L927 it is also possible that it's a limitation of the library used for uploads |
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you! |
How to use GitHub
Steps to reproduce
Expected behaviour
Uploaded empty folder (for example for creating directory tree).
Actual behaviour
Folder is not uploaded/created.
Server configuration
Operating system:
Debian 9
Web server:
Apache 2.4
Database:
MySQL
PHP version:
7.2
Nextcloud version: (see Nextcloud admin page)
14.0.1 (13 also related)
The text was updated successfully, but these errors were encountered: