a-wing / filegogo Goto Github PK
View Code? Open in Web Editor NEWA file transfer tool that can be used in the browser webrtc p2p
Home Page: https://send.22333.fun
License: MIT License
A file transfer tool that can be used in the browser webrtc p2p
Home Page: https://send.22333.fun
License: MIT License
修改filegogo.toml配置文件中http端口为80,然后开启turn功能,运行后实际监听的端口会变为8080,80并未生效。不开启turn功能,修改端口为80是成功的
Webapp need a beautiful UI. emmmmm
webapp use github action auto Browser test
I am able to transfer files via the webapp however when using client I get the following error:
$ go run ./main.go send -s http://192.168.1.10:3000/5451 /home/andy//Videos/20191006_142104.mp4
panic: invalid character '<' looking for beginning of value
goroutine 1 [running]:
filegogo/client.(*Client).overrideServer(0xc00000e798)
/home/andy/code/filegogo/client/client.go:83 +0x251
filegogo/client.(*Client).Send(0xc00000e798, {0x1d, 0xc0000efcb0}, {0xc0001b9110, 0x1, 0x1})
/home/andy/code/filegogo/client/client.go:104 +0x10e
filegogo/cmd.init.1.func2(0xc0001da0c0)
/home/andy/code/filegogo/cmd/send.go:28 +0xed
github.com/urfave/cli/v2.(*Command).Run(0xc00018d560, 0xc000091f80)
/home/andy/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:163 +0x64a
github.com/urfave/cli/v2.(*App).RunContext(0x1000440, {0xc4db10, 0xc000024110}, {0xc0000200a0, 0x5, 0x5})
/home/andy/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:313 +0x81e
github.com/urfave/cli/v2.(*App).Run(...)
/home/andy/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:224
filegogo/cmd.Execute()
/home/andy/code/filegogo/cmd/cmd.go:43 +0x45
main.main()
/home/andy/code/filegogo/main.go:6 +0x17
Hi,
I have tested the user-end functionality. It involves a simple process of uploading files and downloading them through direct links. Could you please provide more details? I'm actually searching for a peer-to-peer file sharing platform
Here is my idea
First, I'll upload a file to an online server (FileManager), and it will generate a unique URL for that file. This URL will be shared on any website / social media ETC
When the first user decides to download the file, it will be retrieved directly from the server since only one peer is involved.
As more users come in to download the file, the number of peers increases. For instance, when the second user arrives, the file will have two peers: the server and the first user who downloaded it. This means the second user will download the file from both the server and the first user.
Similarly, when a third user arrives, there will be three peers: the server, the first user, and the second user. This setup grows with more users, resulting in multiple peers for each download.
So if no one is downloading, MY server will always be available as the default peer. This idea is to make shared file peer active for a lifetime
For example: use Ctrl+v add file
some small file support preview, like image, text
Websocket reconnect is required when some abnormal conditions occur in the network
look like: https://github.com/vastsa/FileCodeBox
browser default storage RAM
current storage FS (file system)
if file.size < 1G {
// browser default storage RAM
} else {
// storage FS (file system)
}
Win11 cannot run. Win10 can run normally. thank you
look like filefox send
curl -F "f=@filename"
send filewebrtc > websocket
, after webrtc > websocket > http
Current need depend coturn server
Built-in turn server use pion/turn
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.