Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
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

Closed

Description

@skshetry

Steps to reproduce

  1. Create a files-drop link.
  2. Open the files-drop link.

Expected behaviour

Some way to upload folder

Actual behaviour

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.

Activity

  1. added
    Type:Bug
    on Nov 12, 2019
  2. PVince81 commented on Nov 12, 2019

    @PVince81
    Contributor

    @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

  3. self-assigned this
    on Nov 12, 2019
  4. skshetry commented on Nov 14, 2019

    @skshetry
    ContributorAuthor

    @PVince81, Folder uploads in OC 10 are not supported at all. Close this or is this a requirement (it is listed on #2222)?

    Also, phoenix should not upload folder as an empty file nor should it flatten them and upload inside a same folder.

  5. PVince81 commented on Nov 14, 2019

    @PVince81
    Contributor

    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 ?

  6. PVince81 commented on Nov 14, 2019

    @PVince81
    Contributor

    @pmaier1 please reopen if you think we want to change how it works in Phoenix

  7. skshetry commented on Nov 15, 2019

    @skshetry
    ContributorAuthor

    @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.

  8. PVince81 commented on Nov 15, 2019

    @PVince81
    Contributor

    @skshetry you're right. We need to block this with a warning.

  9. added this to the backlog milestone on Nov 15, 2019
  10. removed their assignment
    on Nov 21, 2019
  11. pascalwengerter commented on Apr 6, 2021

    @pascalwengerter
    Contributor

    @skshetry could you retry this with all the changes that have occured in the last ~1,5 years? Should work fine now 😉

  12. 19 remaining items

  13. phil-davis commented on May 12, 2022

    @phil-davis
    Contributor

    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.

  14. JammingBen commented on May 12, 2022

    @JammingBen
    Contributor

    Good idea, AFAIK this would need to be implemented first though. The ownCloud SDK (and oCIS itself?) only works with paths and names.

  15. JammingBen commented on May 17, 2022

    @JammingBen
    Contributor

    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:

    • oCIS must return the resourceIds of newly created folders (is this valid though?)
    • oCIS must implement a way to support file uploads via resourceId
    • SDK must be adjusted to support file uploads via resourceId
    • Folder upload mechanism must be adjusted in Web to match this process
  16. moved this to In progress in Web Support Boardon Jun 19, 2023
  17. moved this from In progress to Blocked in Web Support Boardon Sep 29, 2023
  18. removed their assignment
    on Dec 12, 2023
  19. removed
    Priority:p1-urgent
    on Dec 12, 2023
  20. moved this from Qualification to blocked in Infinite Scale Team Boardon Dec 12, 2023
  21. PrajwolAmatya commented on Feb 14, 2024

    @PrajwolAmatya
    Contributor

    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.

    ├── upload
    │   ├── file1.txt
    │   ├── file2.txt
    │   └── sub
    │       ├── file1.pdf
    │       └── file2.pdf
    

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions