Closed shivardev closed 9 months ago
I'm trying to upload a file in a Folder I have given the folderID, yet it is uploading in root directory.
await gdrive.files .newMultipartUploader() .setData(base64Data, MimeTypes.BINARY) .setIsBase64(true) .setRequestBody({ name: pickedDocument.name, parent: ["13p9DHmWleA8nCDCOd15r-qt2wvc_bMZ8"] }) .execute();
This part of code is creating a directory inside the desired directory
await gdrive.files .newMetadataOnlyUploader() .setRequestBody({ name: 'Rimmind', mimeType: MimeTypes.FOLDER, parents: ['13p9DHmWleA8nCDCOd15r-qt2wvc_bMZ8'], }) .execute(),
Hi, Typo in your first sample, have a thorough look, please.
I'm trying to upload a file in a Folder I have given the folderID, yet it is uploading in root directory.
This part of code is creating a directory inside the desired directory