A little while ago, I decided to explore and study some sockets to be worked on in PHP. So I got a good tutorial on the internet and I decided to create a very simple chat where I connect the server and two machines access the address to do the communication.
After having done this chat, the idea arose of uploading a file in the chat itself, but I do not know if it is possible, or rather, how can I work with files inside a chat making communication via socket? >
Source used for chat creation: