DEV Community

Discussion on: Share files securely peer to peer with WEBRTC

Collapse
 
bradiskill profile image
Bradiskill

Hi I proceded to run this and found that when I transfered the files, it turned everything into a txt file. For example I tried to transfer a png but it became an encrypted .txt file. Maybe I know why this is happening and how I can fix this. ASAP by today if possible. Thank you

Collapse
 
eneaslari profile image
EneasLari • Edited

Hello, for a quick solution to this problem just change the line 160 with a hardcoded name, for the output file for example: "downloadFile(blob, "image.png");"