vue-advanced-chat icon indicating copy to clipboard operation
vue-advanced-chat copied to clipboard

Drag & drop files upload

Open Alisonispig opened this issue 3 years ago • 11 comments

Describe the solution you'd like

I want to add a file drag upload function, which is very necessary in some cases.

Alisonispig avatar Aug 03 '22 09:08 Alisonispig

Yes I agree, feel free to send a PR for that.

antoine92190 avatar Aug 13 '22 04:08 antoine92190

@Alisonispig are you going to give PR soon ?? @antoine92190 or can you please guide us about drag and drop files Function.

Furqan2 avatar Sep 13 '22 06:09 Furqan2

The implementation should be easy, you just need to make sure the drag and drop calls the following function: https://github.com/antoine92190/vue-advanced-chat/blob/master/src/lib/Room/RoomFooter/RoomFooter.vue#L498-L524

antoine92190 avatar Sep 13 '22 13:09 antoine92190

@antoine92190 thanks for the response can you guide me how exactly i can call this function .... i have drag function with witch i have data property of files now how can i just call onFileChange from my function .... I'm new to Vuejs so.

Furqan2 avatar Sep 14 '22 11:09 Furqan2

You need to do the change in the file I sent you, then send a pull request.

antoine92190 avatar Sep 14 '22 12:09 antoine92190

i don't understand all i understand is i have to make my drag and drop function and the call the ;library function to pass the files.

Furqan2 avatar Sep 14 '22 12:09 Furqan2

Your drag and drop function needs to be inside the library file, it should be part of the library. If you don't know how to do it, you will need to wait until I implement the feature myself.

antoine92190 avatar Sep 14 '22 13:09 antoine92190

It will be great to have this feature as i need it badly and im stuck on this. Thanks

Furqan2 avatar Sep 14 '22 15:09 Furqan2

Feature added in https://github.com/antoine92190/vue-advanced-chat/commit/3fe2feeb4eab37474bcd433b0c419e5f3fc30a1a You can try it out on the demo until I release it: https://antoine92190.github.io/vue-advanced-chat/

antoine92190 avatar Sep 14 '22 16:09 antoine92190

Thats a very good move, working good on demo lets try out in real application, when will it be available.

Furqan2 avatar Sep 14 '22 16:09 Furqan2

@antoine92190 hey when the update release4 gonna happen ??

Furqan2 avatar Sep 19 '22 07:09 Furqan2