# Transferring files with p5 js, node js, socket io

**URL:** <https://discourse.processing.org/t/transferring-files-with-p5-js-node-js-socket-io/19881>\
**Category:** Libraries\
**Created:** [April 18, 2020, 7:04am UTC](https://discourse.processing.org/t/transferring-files-with-p5-js-node-js-socket-io/19881 "2020-04-18T07:04:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodingIsLife](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@CodingIsLife](https://discourse.processing.org/u/CodingIsLife)\
**Post date:** [April 18, 2020, 7:04am UTC](https://discourse.processing.org/t/transferring-files-with-p5-js-node-js-socket-io/19881/1 "2020-04-18T07:04:05Z")

</div>

Hello! I am using p5 js for developing a very simple chat platform. I am also using node and socket.  
[The video series I am following created by Coding Train](https://www.youtube.com/watch?v=bjULmG8fqc8)

I implemented the chatting concept successfully. But now I wanted to implement the uploading and downloading system. The idea is that a user will drag and drop a file and I will send it to the server (node js) and then broadcast it to all the other users who will download it then.

I watched this video - [Drag and Drop by Coding Train](https://www.youtube.com/watch?v=o4UmGrPst_c&t=318s)

But as I am a complete beginner… I could not solve it.  
So how do I do it? Or even if I am able to broadcast the file, how do I save the file once recieved?

Thanks in advance! I will really be grateful if you answer it.
