-
Notifications
You must be signed in to change notification settings - Fork 91
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
Non-image media attachments #2378
Conversation
556f914
to
7b13184
Compare
0778311
to
bd0bf69
Compare
@mejo- @max-nextcloud @vinicius73 @juliushaertl This is now based on latest master which includes the material icon PR 😁. Before moving forward, do we agree on the following aspects?
What's been implemented for now:
What's weird but not definitive 😜 :
TODO
Let's go! |
I like this approach, looks future-proof. |
bd0bf69
to
60dea34
Compare
7f9e746
to
01e519c
Compare
src/nodes/ImageView.vue
Outdated
return new Promise((resolve, reject) => { | ||
const img = new Image() | ||
img.onload = () => { | ||
this.imageUrl = imageUrl | ||
this.imageLoaded = true | ||
this.loaded = true | ||
this.attachmentType = attachmentType | ||
console.debug('SUCCESS type', attachmentType) | ||
if (attachmentType === 'media') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it will be good to change it to a watcher.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm open to commits on top of mines 😁. It is not as simple as it seems because we need the file name to load the metadata.
@eneiluj the delete icon looks a bit off, it seems to be a community one from materialdesignicons.com (please try not to use that, only when the official site has no icon) – use this instead :) https://fonts.google.com/icons?selected=Material%20Icons%3Adelete%3A Regarding the layout of the element itself, it would be a bit nicer if the element doesn’t go full width. The size info could go into the subline of the element, using |
f2a4482
to
7f756b0
Compare
/compile |
65618d7
to
7407a9d
Compare
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
…lving loadImage Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
…r when exceeding post_max_size, log upload auth error Signed-off-by: Julien Veyssier <[email protected]>
Signed-off-by: Julien Veyssier <[email protected]>
4cf9769
to
4b80cd5
Compare
/compile |
I wonder if the cypress failures are due to this... maybe because the urls changed now that the parameters are in there... |
Signed-off-by: Julien Veyssier <[email protected]>
9eb7a5a
to
277b8e0
Compare
/compile |
Signed-off-by: nextcloud-command <[email protected]>
refs #2339
Allow non-image media upload. Some details needs to be discussed before moving forward.