@patrick did you already have the time to check this? I still can’t get the progress bar to work with node and s3 Download file. I have no problems on my PHP site.
Thank you for checking as I would like to finalize my PHP/Node Conversion
I think the node version is probably missing the ContentLength header, perhaps you could check that in the network tab of devtools. When the ContentLength header is missing it can’t calculate the percentage downloaded.
I currently have a lot of work so can’t spend to much time on debugging. You can check what the data is that was returned by the headObject function, just return it in the downloadFile function, enable output on the action and you should see it in the json response. It probably is something simple like perhaps the case is wrong. Or maybe the S3 provider doesn’t return the content length.
If you find the solution I will make sure it will be implemented in the next update.
However, it doesn’t download or open in a new tab.
What it does is trigger the dmx-on:error="notifies1.warning(' '+orders_download_invoice.lastError.response)" code.
Which is strange, as the response is 200.
Using the console I can find why it triggers the error message code:
You should not call it with a serverconnect component when it is a download, call the action with a download component or a link tag with download attribute.
Hi Patrick, I have a serverconnect that signs the download url and on succes I use the download component to download the file with the signed url. Is that the correct way? For me it works, but I get this error:
Well the weird thing is that it does download the file…
So some things I tried: if I disable the step of signing the download url in the server action, the download component just downloads a html document called ‘download’. Not the actual s3 file.
If I enable the signdownloadurl step, it signs the url and downloads the file AND comes with a 403 error. If I copy the url like so: