Skip to content

Commit 24ec437

Browse files
committed
add logs
1 parent 6965fc8 commit 24ec437

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/people/widgetViews/workspace/EditWorkspaceModal.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,13 @@ const EditWorkspaceModal = (props: EditWorkspaceModalProps) => {
206206
const formData = new FormData();
207207
if (rawSelectedFile) {
208208
formData.append('file', rawSelectedFile);
209+
console.log('Form Data: ' + formData);
209210
const file = await main.uploadFile(formData);
211+
console.log('File: ' + file);
210212
if (file && file.ok) {
211213
img = await file.json();
214+
} else {
215+
alert('Failed to upload file');
212216
}
213217
}
214218

0 commit comments

Comments
 (0)