diff options
author | Felix Ableitner <me@nutomic.com> | 2020-06-08 19:52:32 +0200 |
---|---|---|
committer | Felix Ableitner <me@nutomic.com> | 2020-06-08 19:52:32 +0200 |
commit | e583e45d9a2221b3ed2a743cfa172abcd2a1d6a0 (patch) | |
tree | 76a2625d41639e125bbc2b1511209645e9997bbb /ui/src/components/post-form.tsx | |
parent | a13e9fe3959e07f901ba0647dfd7f749865a900d (diff) |
Use pictrs instead of pictshare
Diffstat (limited to 'ui/src/components/post-form.tsx')
-rw-r--r-- | ui/src/components/post-form.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index 6f1e34e0..a9356d05 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -518,9 +518,9 @@ export class PostForm extends Component<PostFormProps, PostFormState> { file = event; } - const imageUploadUrl = `/pictshare/api/upload.php`; + const imageUploadUrl = `/pictrs/image`; const formData = new FormData(); - formData.append('file', file); + formData.append('images', file); i.state.imageLoading = true; i.setState(i.state); @@ -531,7 +531,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> { }) .then(res => res.json()) .then(res => { - let url = `${window.location.origin}/pictshare/${encodeURI(res.url)}`; + let url = `${window.location.origin}/pictrs/${encodeURI(res.url)}`; if (res.filetype == 'mp4') { url += '/raw'; } |