Skip to content
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

Drag to upload #56

Closed
auniverseaway opened this issue Jan 25, 2024 · 2 comments · Fixed by #125 · May be fixed by #62
Closed

Drag to upload #56

auniverseaway opened this issue Jan 25, 2024 · 2 comments · Fixed by #125 · May be fixed by #62
Assignees
Labels

Comments

@auniverseaway
Copy link
Member

As an author I would like the ability to drag htmls, images, jsons in the da-browse block instead of using the create new button so that I can do upload operations faster and in bulk.

Criteria of acceptance

  1. Supports dragging singular documents into the browse block (we can refine specific UX details during dev)
  2. Supports dragging multiple files while also retaining the folder structure of dragged items.
  3. Does not upload un-supported files (.DS_Store, MOV, MKV, etc)
  4. Uploads should be relative to the current location browsing.

Additional context

We probably need a universal supported file type list in constants.js. The upload image plugin has the beginnings of this.

This unlocks simple content migrations in that someone can do offline edits in bulk (think find & replace a URL or image SRC) and then drag the items back in.

This issue should not be confused with bulk downloads which I think will require broader API support for zipping a series of items.

@docs-dre
Copy link

docs-dre commented Jan 25, 2024

@auniverseaway this issue made me think about a possibility to upload existing word docs straight into a da directory. (drag from my local into DA) Some kind of .docx -> .alleydoc converter? to make migrations easier. Not sure if thats what this issue is also trying to get at.

@auniverseaway
Copy link
Member Author

@docs-dre 100%. There's some interesting implications here.

We get a lot of what you're trying to accomplish for free right now because we store the exact same format as AEM Edge Delivery. This means you can take any page from hlx.page and upload it to DA.

Where this falls down is metadata. Currently, metadata is only separated between Excel and Word.

  1. If you look at the "plain.html" format there is no metadata.
  2. If you look at the regular page, you cannot differentiate between inherited and local.
  3. If you look at md, you get this, but MD isn't the best format.

I think we want this, but it would probably be later when we have docx migrations.

@auniverseaway auniverseaway assigned auniverseaway and unassigned mhaack May 6, 2024
auniverseaway added a commit that referenced this issue May 6, 2024
* Support uploading depths of up to 1000 folders deep
* Filters out unsupported file types and extensions
* Supports all major browsers: Chrome, Safari, Firefox, iOS Safari
* Supports singular uploads

Resolves: GH-56
@auniverseaway auniverseaway mentioned this issue May 6, 2024
10 tasks
auniverseaway added a commit that referenced this issue May 6, 2024
* GH-56 - Drag and drop

* Support uploading depths of up to 1000 folders deep
* Filters out unsupported file types and extensions
* Supports all major browsers: Chrome, Safari, Firefox, iOS Safari
* Supports singular uploads

Resolves: GH-56

* Minor fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants