edwardwohaijun / simple-filer Goto Github PK
View Code? Open in Web Editor NEWWeb-based P2P file transfer library
License: MIT License
Web-based P2P file transfer library
License: MIT License
At first, I though that's because the file is being written and removed at the same time. The error message is clear enough:
Uncaught (in promise) DOMException: It was determined that certain files are unsafe for access within a web application, or that too many calls are being made on file resources.
But even I move the "fs(fileObj).then(getFile).then(removeFile) call" in _updateProgress(), which is a callback passed to onwriteend. The error still occurred.
我跟了下代码,发现是simple-peer的问题,接收方连接还没连接成功时,发送方的connect事件就触发了,导致第一个任务发送文件信息时没成功,不知道是不是我本机的问题
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.