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

Upload multiple files at once #1150

Open
numito opened this issue Oct 23, 2020 · 4 comments
Open

Upload multiple files at once #1150

numito opened this issue Oct 23, 2020 · 4 comments

Comments

@numito
Copy link

numito commented Oct 23, 2020

Gentics Mesh Version, operating system, or hardware.

  • v1.4.2

Operating System

  • Linux
  • MacOSX
  • Windows
  • Other, name?

JVM

  • Oracle JDK 1.8.0_100
  • Open JDK 1.8.0_100

Problem

You can't upload multiple files at once, you have to create a binary node for each file give it a name etc...
There should be a way to store all files in an assets folder, and bulk upload them, the binary node would be automatically created, and the name set from the file name.

Reproducer

Expected behaviour and actual behaviour

@Jotschi
Copy link
Contributor

Jotschi commented Nov 9, 2020

The API is lacking this feature. The UI however has support for multi-file uploads.
There is currently no endpoint which directly creates nodes with binary data. Bulkupload in the API can easily be done using multiple requests.

Does your feedback relate to API or UI?

@numito
Copy link
Author

numito commented Nov 9, 2020 via email

@Jotschi
Copy link
Contributor

Jotschi commented Nov 9, 2020

Yes, we have actually discussed this internally multiple times. A dedicated handling of assets would be welcome. There are however various things to consider (Permission-, branch-, webroot handling).

gentics/mesh-incubator#163

Multiple binary fields in a node can be desired when not using webroot and wanting to store a gallery or something similar. But this could also be modelled differently. There were also requests in the past to enable binary fields for micronodes. It would be useful to have a binary field for the picture of a micronode that represents a vcard.

You may want to have multiple binary node schemas with different elasticsearch configurations. One schema could be used to process PDF documents and also use a specific stemmer configuration on the binary content. Other assets may not need binary content extraction. But so far I have not yet seen a installation that uses multiple schemas for binary data.

In general I think it would be a good idea to have a dedicated system for assets but I'm not yet sure how to implement it.
So far other areas in Mesh have required more attention.

@numito
Copy link
Author

numito commented Nov 9, 2020 via email

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

No branches or pull requests

2 participants