You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Upload in file-drop public link flattens folder hierarchy #2443
No way to upload a folder. Dragging a folder uploads the contents of the folder (recurse through it and flattens them).
Also, using setValue and trying to upload folder through Nightwatch creates an empty file.
@PVince81, then, I would not expect the contents of sub-folders getting uploaded in the root of the publicly-shared folder (at least they should be in their respective sub-folders).
Re-opening, feel free to close if you don't think, that is an issue.
Can't we handle subsequent (child folder) uploads based on the resourceId of the previously uploaded (parent) resource, hence not disclosing anything about potential renaming happening?
That sounds promising - the response to the "create resource" request can provide a resourceId which is a "magic string" unrelated to the resource name. The client can then create child resources under that.
This issue doesn't seem to occur in latest master. Upload folder to public link share works fine and also the issue mentioned in this comment #2443 (comment), the structure of the folder is not affected.
Checked manually by uploading the folder with following structure in a public link share.
The folder is uploaded with the same folder structure. The folder upload is currently not supported in playwright, so only tested manually. So, closing this issue for now.
CC @ScharfViktor
Activity
PVince81 commentedon Nov 12, 2019
@skshetry mind trying this with OC 10 ?
as far as I remember we don't support subdirectories in files drop mode so this might be expected behavior
skshetry commentedon Nov 14, 2019
@PVince81, Folder uploads in OC 10 are not supported at all. Close this or is this a requirement (it is listed on #2222)?
Also,
phoenixshould not upload folder as anemptyfile nor should it flatten them and upload inside a same folder.PVince81 commentedon Nov 14, 2019
not a requirement imo, it would mess up the concept and make it more complex as we'd need to avoid file name collisions even across folders.
@pmaier1 thoughts ?
PVince81 commentedon Nov 14, 2019
@pmaier1 please reopen if you think we want to change how it works in Phoenix
skshetry commentedon Nov 15, 2019
@PVince81, then, I would not expect the contents of sub-folders getting uploaded in the root of the publicly-shared folder (at least they should be in their respective sub-folders).
Re-opening, feel free to close if you don't think, that is an issue.
PVince81 commentedon Nov 15, 2019
@skshetry you're right. We need to block this with a warning.
pascalwengerter commentedon Apr 6, 2021
@skshetry could you retry this with all the changes that have occured in the last ~1,5 years? Should work fine now 😉
19 remaining items
phil-davis commentedon May 12, 2022
That sounds promising - the response to the "create resource" request can provide a resourceId which is a "magic string" unrelated to the resource name. The client can then create child resources under that.
JammingBen commentedon May 12, 2022
Good idea, AFAIK this would need to be implemented first though. The ownCloud SDK (and oCIS itself?) only works with paths and names.
JammingBen commentedon May 17, 2022
I researched a bit on how things work and what needs to be done if we aim for this solution. There's quite a lot unfortunately:
PrajwolAmatya commentedon Feb 14, 2024
This issue doesn't seem to occur in latest master. Upload folder to public link share works fine and also the issue mentioned in this comment #2443 (comment), the structure of the folder is not affected.
Checked manually by uploading the folder with following structure in a public link share.
The folder is uploaded with the same folder structure. The folder upload is currently not supported in playwright, so only tested manually. So, closing this issue for now.
CC @ScharfViktor