Closed nilshoerrmann closed 1 year ago
@nilshoerrmann Does this issue still affect you/which Kirby version was/is affected?
I'll be working again on that project next week and will check again, but I think it still affects us.
This happened on Kirby 3.7.5 – I'll try the newest version next week to see if that fixes the issue.
I finally found the time to check this issue again and, yes, this problem still exists. I'm not able to update this specific install to Kirby 3.9 yet so this is happening on Kirby 3.7.5 currently.
Two things to note:
title: 'Feature: News'
fields:
text:
type: markdown
label: Text
size: small
help: 'To insert image in text, use the paperclip. Remember to have a line space before and after, or it will not show up.'
files: page.parent.parent.images
uploads:
parent: page.parent.parent
@nilshoerrmann Thanks for the update. Unfortunately, I am currently not able to invest any time into this at least until March, so please be patient …
No problem :)
Comparing the core textarea upload implementation and the one from this field, it seems as if the uploadFile
methods needs to be updated:
Textarea Field:
uploadFile() {
this.$refs.fileUpload.open({
url: this.$urls.api + "/" + this.endpoints.field + "/upload",
multiple: false
});
},
Markdown Field:
uploadFile() {
this.$refs.fileUpload.open({
url: "/api/" + this.endpoints.field + "/upload",
multiple: false,
});
},
When uploading an image via the Markdown field, I get the following error:
The upload endpoint returns a 404 error:
I see that the path is not correct, it should be
http://localhost:8888/example.com/api/pages/news+title/fields/preface/upload
– the path to my install is missing.