We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45aefbf commit 994e420Copy full SHA for 994e420
src/plugins/driveBrowserPlugin.ts
@@ -756,7 +756,11 @@ namespace Private {
756
const toDir = factory.tracker.currentWidget!.model.path;
757
app.serviceManager.contents.save(PathExt.join(toDir, fileName), {
758
type: 'file',
759
- format: 'text',
+ format:
760
+ PathExt.extname(fileName) === '.txt' ||
761
+ PathExt.extname(fileName) === '.ipynb'
762
+ ? 'text'
763
+ : 'base64',
764
content: (
765
await getContents(driveName, {
766
path: currentPath,
0 commit comments