简体   繁体   English

将文件从 electron 发送到连接在 LAN 中的服务器

[英]Send file from electron to server connected in LAN

I am building a client desktop application that uploads a file and sends it to store on the server.我正在构建一个客户端桌面应用程序,它上传文件并将其发送到服务器上存储。

Conditions:条件:

  • Client-server connected in LAN连接在 LAN 中的客户端-服务器
  • Send file without using internet不使用互联网发送文件
  • File system for storage on server (no database)服务器上存储的文件系统(无数据库)

Electron.js is used for building the desktop application. Electron.js用于构建桌面应用程序。 What should run on the server-side to receive and store files?应该在服务器端运行什么来接收和存储文件? Is there a library in electron to send files over a LAN? electron 中是否有用于通过 LAN 发送文件的库?

If you have a server running on local network, it should work just any data transfer.如果您有一台在本地网络上运行的服务器,它应该可以进行任何数据传输。 You can have a node server handling requests and you access it via local ip address.您可以让节点服务器处理请求,并通过本地 ip 地址访问它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以通过提供路径将文件从 Electron 应用程序发送到 Express 服务器? - Is it possible to send a file from Electron app to Express server by providing the path? 电子对话框使用vue资源将文件发送到服务器 - Electron Dialog send file to server with vue resource 将本地文件从电子推送到服务器PHP - Push Local File From Electron to Server PHP 如何将信息从Web服务器发送到Electron应用程序? - How can I send information from a web server to an Electron app? 从电子应用程序发送密钥? - Send keys from an electron application? 如何将数据从Electron.js应用程序发送到远程服务器/数据库 - How to send data from an Electron.js app to a remote server/db 如何将值作为参数从节点 js 文件发送到电子 main.js 文件的 loadURL()? - how to send value as a parameter to loadURL() of electron main.js file from node js file? 如何在Electron渲染器窗口中从一个JavaScript类/文件向另一个JavaScript类/文件发送消息? - How to send a message in an Electron renderer window from one JavaScript class/file to another? 将数据从.net应用程序发送到电子应用程序 - Send data from .net application to electron app Electron - 将自定义事件从 Menu 发送到渲染器 - Electron - send a custom event from Menu to renderer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM