Skip to content

Commit e6f7341

Browse files
feat: passing context and metadata when using rename
1 parent 352a5b5 commit e6f7341

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib-es5/uploader.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ exports.rename = function rename(from_public_id, to_public_id, callback) {
269269
to_public_id: to_public_id,
270270
overwrite: options.overwrite,
271271
invalidate: options.invalidate,
272-
to_type: options.to_type
272+
to_type: options.to_type,
273+
context: options.context,
274+
metadata: options.metadata
273275
}];
274276
});
275277
};

lib/uploader.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ exports.rename = function rename(from_public_id, to_public_id, callback, options
220220
to_public_id: to_public_id,
221221
overwrite: options.overwrite,
222222
invalidate: options.invalidate,
223-
to_type: options.to_type
223+
to_type: options.to_type,
224+
context: options.context,
225+
metadata: options.metadata
224226
}
225227
];
226228
});

0 commit comments

Comments
 (0)