Open theywa opened 2 years ago
@theywa, I believe that file should be part of instanceAttachments (it is send with the API request to Enketo). This would be the place to investigate first I think. See oc-api-v1-controller.js to see if the file is correctly received by the API on the Enketo server.
(I see this issue is now been assigned to me though, but I wanted to respond anyway).
It would actually be easier to work on by a developer that has access to the OC backend (that sends the attachment).
thank you for the clue @MartijnR, I just created PR and I think this issue is related to the changes in this commit 5d7f22a7(fixed: OC: form media not showing after: (1) submitting record in offline), is there another place that you might think I should check to make sure the code works properly? thank you in advance
Describe the bug File upload forms are unable to fetch the uploaded OC-17883
To Reproduce
Expected behavior The file can be viewed and downloaded
Screenshots
Additional context After some debug I found the error is on getFileUrl() method in file-manager
for the screenshot above the value of
subject
isdownloadMediaEncrypted%20(1)-19_16_10.zip
then it will go this conditionthat's why it error because it can't find the correct path/link of the file. I'm not sure about the correct value for the
subject
variable, should it be the link of the file or just the file name like right now? @MartijnR do you have any idea about this issue?