Closed luasenvy closed 3 years ago
It's better use:
schema.workflow('send-file', function($) {
$.controller.file('~' + filepath);
$.cancel();
})
Your code doesn't handle headers.range
correcly, but Total.js .file()
solves everything.
oh, thank you for reply i will use your guide! more simple 👍
i use controller -> schema.workflow process.
and i work in progress implementing range partial content.
code is like below:
but response always setted 200.
so, i change the code:
i'm not sure this code not have a side effect for total.js but, well worked.
if has a better solution, please guide me.
feel free close this issue
thanks :)