I started using DevExtreme modules in my Angular app.
I have an dxFileUploader in my component template that needs an "uploadUrl" to upload the file.
In fact, I don't wanna to really upload this file to my backend, but to store it on a local storage key. (yes, I know the limitations of local storage but I will go that way in this case).
Is there any known way to call a Angular function instead of a url on dxFileUploader?
Case not, is there any way I can have an angular component to receive POST requests? So I will put this component as the uploadUrl and then save on local storage.
Thanks in advance.
答案 0 :(得分:0)
你实际上不想在任何地方发帖,你真正想要的是将价值存储在浏览器存储上,所以:
关于价值变动
dxFileUploader: { onValueChanged: valueChanged }
获取文件
$scope.valueChanged = function(e)
{
//get the value here and store in the localStorage.
}