You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've setup the following for @tus/server together with @tus/s3-store:
const {Server} = require('@tus/server')
const {S3Store} = require('@tus/s3-store')
const s3Store = new S3Store({
partSize: 8 * 1024 * 1024, // Each uploaded part will have ~8MB,
s3ClientConfig: {
bucket: process.env.AWS_BUCKET,
region: process.env.AWS_REGION,
credentials: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
},
},
})
const server = new Server({path: '/uploads', datastore: s3Store})
const uploadApp = express();
uploadApp.all("*", tusServer.handle.bind(tusServer));
app.use(
"/uploads",
passport.authenticate("jwt", { session: false }),
uploadApp
);
I'm using tus-js-client on the frontend, setup as in the example.
When uploading to S3 the file is successfully send and the browser received the "onSuccess" message. However the files are placed in S3 as follows:
It looks as if the upload is not finalized (from what I know about multiuploads with CompleteMultipartUploadCommand). Am I missing something, or can the passport auth cause an issue?
The text was updated successfully, but these errors were encountered:
I've setup the following for @tus/server together with @tus/s3-store:
I'm using tus-js-client on the frontend, setup as in the example.
When uploading to S3 the file is successfully send and the browser received the "onSuccess" message. However the files are placed in S3 as follows:
It looks as if the upload is not finalized (from what I know about multiuploads with CompleteMultipartUploadCommand). Am I missing something, or can the passport auth cause an issue?
The text was updated successfully, but these errors were encountered: