-
Hello,
Running into some issues with updating a user's profile image through the POST /d2l/api...
Hello,Running into some issues with updating a user's profile image through the POST /d2l/api/lp/(version)/profile/myProfile/image API. I’m using Node and the multer, form-data, and axios npm libraries. *Update* So far I have: // from multer — upload.single(‘file) const fileInfo = { name: file.originalname, contentType:…
-
Hello,
Running into some issues with updating a user's profile image through the POST /d2l/api...
*Update* So far I have: // from multer — upload.single(‘file) const fileInfo = { name: file.originalname, contentType: file.mimetype, buffer: file.buffer, size: file.size, }; const form = new FormData(); form.append('profileImage', fileInfo.buffer); const config = { method: 'post', url:…
-
Hello,
Running into some issues with updating a user's profile image through the POST /d2l/api/l
*Update* So far I have:// from multer — upload.single(‘file)const fileInfo = { name: file.originalname, contentType: file.mimetype, buffer: file.buffer, size: file.size,}; const form = new FormData();form.append('profileImage', fileInfo.buffer);const config = { method: 'post', url:…