Skip to content

Commit

Permalink
update upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Germey committed Dec 30, 2023
1 parent 69dd9d3 commit e2d1b83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ server {

location /api/v1/ {
proxy_pass http://data-backend:8000;
client_max_body_size 8m;
client_max_body_size 20m;
}

location /oauth2/v1/ {
Expand Down
6 changes: 3 additions & 3 deletions src/components/midjourney/ReferenceImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<el-upload
v-model:file-list="fileList"
class="upload-demo"
name="image"
name="file"
:limit="5"
:multiple="true"
action="/api/v1/images/"
action="/api/v1/files/"
list-type="picture"
:on-exceed="onExceed"
:on-error="onError"
Expand Down Expand Up @@ -55,7 +55,7 @@ export default defineComponent({
},
urls() {
// @ts-ignore
return this.fileList.map((file: UploadFile) => file?.response?.image_url);
return this.fileList.map((file: UploadFile) => file?.response?.file_url);
}
},
watch: {
Expand Down

0 comments on commit e2d1b83

Please sign in to comment.