![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
dropbox_session_upload
Advanced tools
Node wrapper around the dropbox upload session API to help concurrently upload files over 150mb to dropbox.
Dropbox Session Upload provides a wrapper around the Dropbox Node Package. Session Uploading via the Dropbox API is used for files that are large than 150mb. This section of the API can be complicated and this package hopes to provide a clean wrapper around this complicated API. This wrapper also supports concurrent file uploading out of the box.
8.3.0
or greaternpm install dropbox_session_upload
This Example can be found in /examples/simple.js
// import modules
const fs = require("fs")
const {upload} = require("dropbox_session_upload")
// setup files to upload
const files = [
{
file: fs.createReadStream("./datafile.txt"),
saveLocation: "/datafile1.txt"
},
{
file: fs.createReadStream("./datafile.txt"),
saveLocation: "/datafile2.txt"
},
{
file: fs.createReadStream("./datafile.txt"),
saveLocation: "/datafile3.txt"
}
]
// upload the files
upload(files, process.env.DROPBOXTOKEN, true /* debug mode, defaults to false */)
.catch(error => console.log(error))
.then(() => console.log("Done Uploading!"))
This Example can be found in /examples/progressTracking.js
Adding progress tracking is simple, but due to the dropbox api progress will only be updated every 8mb. This is the size of chunks this packages uploads at once. So you will find that progress jumps in 8mb chunks. While annoying it can still be helpful to know where your file is at in the upload process.
// import modules
const fs = require("fs")
const { upload, progress } = require("dropbox_session_upload")
// setup files to upload
const files = [
{
file: fs.createReadStream("./datafile.txt"),
saveLocation: "/datafile1.txt",
id: "1" // required for progress
},
{
file: fs.createReadStream("./datafile.txt"),
saveLocation: "/datafile1.txt",
id: "2" // required for progress
},
{
file: fs.createReadStream("./datafile.txt"),
saveLocation: "/datafile1.txt",
id: "3" // required for progress
}
]
// upload the files
upload(files, process.env.DROPBOXTOKEN)
.catch(error => console.log(error))
.then(() => console.log("Files Done!"))
// listen for updates to the progress
// this will return `id` and `percentage`
progress(data => console.log(data))
saveLocation
* | & ! @ # $ % ^ * ( ) [ ] { } | - _ = + < > ' " < >
to comply with dropbox file name requirements.2.2.1
_
character.-
character.FAQs
Node wrapper around the dropbox upload session API to help concurrently upload files over 150mb to dropbox.
The npm package dropbox_session_upload receives a total of 0 weekly downloads. As such, dropbox_session_upload popularity was classified as not popular.
We found that dropbox_session_upload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.