0
Google 드라이브의 다른 폴더로 파일을 옮기는 데이 방법을 사용합니다. 하지만 그 방법으로 html 파일 만 이동할 수 있습니다. 내가 어떻게 고칠 수 있니?이미지 파일을 이동할 수 없습니다.
function moveFile(parentId, fileId) {
var body = {'id': fileId};
body.parents = [{'id': parentId}];
var request = gapi.client.request({
'path': 'drive/v2/files/' + fileId,
'method': 'PUT',
'body': body
});
request.execute(function (resp) {
});
}
오류 메시지가 나타 났습니까? 실제 결과는 무엇입니까? [Google 문서] (https://developers.google.com/drive/v3/web/folder#moving_files_between_folders)를 읽어 보면 도움이 될 것입니다. –
@ d.datul1990 내 클라이언트 ID로 애플리케이션을 만들었고 다른 Google 계정으로 로그인 한 경우 내 애플리케이션과 html 파일을 열 수 있지만 이미지 파일을 열거 나 이동할 수는 없습니다. 403() 오류가 발생합니다. – Atti