file-box icon indicating copy to clipboard operation
file-box copied to clipboard

Pack a File into Box for easy move/transfer between servers no matter of where it is.(local, remote url, or cloud storage)

Results 11 file-box issues
Sort by recently updated
recently updated
newest added

If the path cannot exist, create the path If there is a path, follow the original logic normally

See: https://github.com/wechaty/puppet-supports/issues/306#issuecomment-1790071934

When I used puppet-wxwork in wechaty version 0.62.1, I encountered an error: TypeError: file.type is not a function at PuppetService.messageSendFile (/Users/choogoo/workspace/wechaty-mqtt-link/node_modules/wechaty-puppet-service/dist/src/client/puppet-service.js:660:46) I found the error code. Can you help me...

So that we can know the size of the FileBox when it's a stream. 1. The `size` option can be optional. 1. The FileBox JSON payload should include a `size`...

enhancement

```ts FileBox.setUuidSaver(...) FileBox.setUuidLoader(...) const fileBox = FileBox.fromQRCode('qr') // 1. const jsonText = await FileBox.JSONStringify(fileBox) const obj = { n: 42, fileBox, } // 2. const jsonText2 = FileBox.JSONstringify(fileBox) const obj2...

enhancement

When we use `FileBox.fromURL(...)`, it might get a `application/octet-stream` stream back, and the mimeType will be set to `application/octet-stream`. However, the `fileBox.mimeType` should be set to the exact type for...

enhancement

> This will create a web request to save the file to a remote server. You should be in control of that remote server so that you can ensure that...

enhancement

https://github.com/huan/file-box/blob/3788e591fad15a2ec00868a3150d1e136e3898dc/src/misc.ts#L90-L98 If we use `new url.URL()` to replace `url.parse`, the unit tests will fail, and the reason still needs to be found. ### `url.parse` ``` Url { protocol: 'https:', slashes:...

bug
help wanted

See: file-box.test.ts https://github.com/huan/file-box/blob/4e1c2b43ec5b1f59fd0197e18cb0253923936c9c/src/file-box.test.ts#L5-L39