File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,12 @@ File uploads to R2 typically use signed urls. The R2 component provides hooks fo
113113 // const user = await userFromAuth(ctx);
114114 // ...validate that the user can upload to this bucket
115115 },
116- onUpload : async (ctx , key ) => {
117- // ...do something with the key
118- // Runs in the `syncMetadata` mutation, before the upload is performed from the
119- // client side. Convenient way to create relations between the newly created
120- // object key and other data in your Convex database . Runs after the `checkUpload`
121- // callback.
116+ onUpload : async (ctx , bucket , key ) => {
117+ // ...do something with the key
118+ // This technically runs in the `syncMetadata` mutation, as the upload
119+ // is performed from the client side. Will run if using the `useUploadFile`
120+ // hook, or if `syncMetadata` function is called directly . Runs after the
121+ // `checkUpload` callback.
122122 },
123123 });
124124 ```
Original file line number Diff line number Diff line change @@ -28,13 +28,7 @@ export default tseslint.config(
2828 ] ,
2929
3030 "no-unused-vars" : "off" ,
31- "@typescript-eslint/no-unused-vars" : [
32- "warn" ,
33- {
34- argsIgnorePattern : "^_" ,
35- varsIgnorePattern : "^_" ,
36- } ,
37- ] ,
31+ "@typescript-eslint/no-unused-vars" : "off" ,
3832 } ,
3933 }
4034) ;
You can’t perform that action at this time.
0 commit comments