We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
line 8 and 14 of demo/server.js incorrectly use GCSDataStore instead of GCSStore AAnd the whole API call is wrong the the code fails
My Fix
const {Server, EVENTS} = require('@tus/server') const {GCSStore} = require('@tus/gcs-store') const {S3Store} = require('@tus/s3-store') const {FileStore} = require('@tus/file-store') const {Storage} = require('@google-cloud/storage')
const stores = { GCSDataStore: () => { const storage = new Storage( {keyFilename: path.resolve(__dirname, '../keyfile.json')}) return new GCSStore({ bucket: storage.bucket('tus-node-server'), }) }, ....
The text was updated successfully, but these errors were encountered:
also EVENTS are wrong too
Sorry, something went wrong.
@dpmillerau are you able to file a PR with the fix?
For the Events, I haven't worked on that bit, I was trying to reproduce a problem with GCSStore. I just noticed it when nothing got logged.
No branches or pull requests
line 8 and 14 of demo/server.js incorrectly use GCSDataStore instead of GCSStore
AAnd the whole API call is wrong the the code fails
My Fix
const {Server, EVENTS} = require('@tus/server')
const {GCSStore} = require('@tus/gcs-store')
const {S3Store} = require('@tus/s3-store')
const {FileStore} = require('@tus/file-store')
const {Storage} = require('@google-cloud/storage')
const stores = {
GCSDataStore: () => {
const storage = new Storage( {keyFilename: path.resolve(__dirname, '../keyfile.json')})
return new GCSStore({
bucket: storage.bucket('tus-node-server'),
})
},
....
The text was updated successfully, but these errors were encountered: