Hello, I saw example how to save as docx on client side, but how to save it on server as docx? Now I save it as sfdt
saveAsDocx: function() {
this.save('Sfdt');
},
save: function (format) {
// tslint:disable-next-line:max-line-length
this.$refs.doceditcontainer.ej2Instances.documentEditor.saveAsBlob(format).then(function (sfdtBlob) {
var fileReader = new FileReader();
fileReader.onload = function (e) {
// Get Sfdt string here
var sfdtText = fileReader.result;
var rel='nofollow' href = window.location.rel='nofollow' href;
var id = rel='nofollow' href.split('/').pop();
axios.post('/save-file/'+id , sfdtText).then(response => {
window.location = response.data.redirect;
})
.catch(error => {
console.log(error)
});
};
fileReader.readAsText(sfdtBlob);
// The blob can be processed further
})
},