Last post Oct 30, 2015 03:45 AM by Fei Han - MSFT
Oct 29, 2015 10:45 AM|sudip_inn|LINK
anyone guide me or share with me the idea, article or web site link for transfer file from one user to another user for chat apps using any js library because singnalr has no ability for that.
i will be using MVC, signalr in chat project from where user can send file over the chat. thanks
Oct 29, 2015 11:33 AM|Rion Williams|LINK
I'm not sure of a plug-in necessarily, but this would just require a bit of database work.
Consider breaking the process down into the following steps :
Realistically though, you really would just want to upload the file and save it on the server. Then you could define a way to access a specific file (for instance you could make an MVC Action called ViewFile?file=id and after the file was uploaded, you could
just send a link to the other use via Chat.
You may want to check out JabbR, which is a chat application that is based on SignalR that I believe has some behavior like this. JabbR is completely open-source, so you can dig through it and try and see how
they accomplish this same thing.
Oct 29, 2015 02:14 PM|sudip_inn|LINK
i want to transfer file in real time like skype and other messenger. when user A send file to user B then both user see a progress bar and user A see file transfer status by progress bar and user B see file download status by progress bar. this kind of file
transfer is possible in MVC based web apps. if yes then please guide me how to achieve it.
couple of months back i noticed facebook chat giving facility to there user to send file in each other. any idea how facebook is doing this.
Oct 29, 2015 11:00 PM|Fei Han - MSFT|LINK
Firstly, you could enable users to upload file to your server, then you could send a url that could target to the file to clients.
Secondly, you could convert the File to a Base64 DataURL then transfer DataURL to other clients.
Oct 30, 2015 03:45 AM|Fei Han - MSFT|LINK
You could upload file to the server then send a url to client, or you could convert the file to a Base64 DataURL then transfer DataURL to other clients.
when user A send file to user B then both user see a progress bar and user A see file transfer status by progress bar and user B see file download status by progress bar.
Besides, you could dynamically create a Bootstrap progress bar when you upload or decode Base64 DataURL.