In #9 a filepicker component was mentioned as suggestion for a component, but I there is none yet afaik.
I think this would be a helpful improvement.
I think we should have one yes! :)
There was also a request for a npm library to allow picking files from other non nextcloud apps. Some kind of all-in-one nextcloud file picker :)
There was also a request for a npm library to allow picking files from other non nextcloud apps. Some kind of all-in-one nextcloud file picker :)
Which other apps? And where would you use this? Could you give an example, please?
Well, it's not something for this library.
https://github.com/nextcloud/server/issues/2028
It would be a library that allow you to somewhat authorise the integration of the picker from another website and pick a file. But that's irrelevant from here (only the design could be similar) and more importantly, faaaar from being on our roadmap ;)
Sorry for the annoyance! :see_no_evil:
There is a file picker in nextcloud/dialogs: https://github.com/nextcloud/nextcloud-dialogs/blob/master/lib/filepicker.ts
I am fine with the filepicker in nextcloud/dialogs. Should we close this here then?
No, because we should improve things.
I discussed this wit Christoph a few weeks ago.
We should create a Dialog component here.
But we should also create a proper way to call a standalone component in dialogs (file picker, password input, prompt & confirm),to replace what we currently have in server.
The same way we call the Toasts. showDialogPrompt(...), showFilePicker(...)... etc etc
So component here, shorthands and easy accessible functions in dialogs :)
I had some issues with the current filepicker. I'll put them here, also because @georgehrke is contributing to this issue. Please tell me if this is the wrong place.
Nextcloud version: 18.0.3
Contacts verion: 3.3.0
I was trying to add a photo to a contact. I opened the contact, clicked on the circle on the left of the name and selected the option to choose a file already uploaded in my Nextcloud instance.
Here are the two problems:
Most helpful comment
No, because we should improve things.
I discussed this wit Christoph a few weeks ago.
We should create a Dialog component here.
But we should also create a proper way to call a standalone component in dialogs (file picker, password input, prompt & confirm),to replace what we currently have in server.
The same way we call the Toasts.
showDialogPrompt(...),showFilePicker(...)... etc etcSo component here, shorthands and easy accessible functions in dialogs :)