diff options
author | Stanley Yip <stanley_yip@brown.edu> | 2020-02-12 21:54:58 -0500 |
---|---|---|
committer | Stanley Yip <stanley_yip@brown.edu> | 2020-02-12 21:54:58 -0500 |
commit | a8b19e82d8c9a8350609e64e60848dbfbbbb6dcd (patch) | |
tree | 35d1e015a4b6f4913f162faec50c79c36e402350 /src/mobile/ImageUpload.tsx | |
parent | 33d5a12af14e1ed50e5c3164b363fbbc253506a0 (diff) | |
parent | 864cba561db8e26240b093da7ab524e76c8823d1 (diff) |
merge
Diffstat (limited to 'src/mobile/ImageUpload.tsx')
-rw-r--r-- | src/mobile/ImageUpload.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mobile/ImageUpload.tsx b/src/mobile/ImageUpload.tsx index 1583e3d5d..5903a2ce9 100644 --- a/src/mobile/ImageUpload.tsx +++ b/src/mobile/ImageUpload.tsx @@ -13,6 +13,7 @@ import { observable } from 'mobx'; import { Utils } from '../Utils'; import MobileInterface from './MobileInterface'; import { CurrentUserUtils } from '../server/authentication/models/current_user_utils'; +import { Scripting } from '../client/util/Scripting'; @@ -27,12 +28,11 @@ const inputRef = React.createRef<HTMLInputElement>(); @observer class Uploader extends React.Component { - @observable - error: string = ""; - @observable - status: string = ""; + @observable error: string = ""; + @observable status: string = ""; onClick = async () => { + console.log("uploader click"); try { this.status = "initializing protos"; await Docs.Prototypes.initialize(); @@ -47,6 +47,7 @@ class Uploader extends React.Component { const upload = window.location.origin + "/uploadFormData"; this.status = "uploading image"; + console.log("uploading image", formData); const res = await fetch(upload, { method: 'POST', body: formData |