How can I upload a file to the server using Vue file manager?
If the user creates a new directory or uploads files, how can I determine the path of the folder or uploaded file?
Here is my template:
<template>
<div class="FileManagement">
<va-inner-loading :loading="isLoading">
<div class="row">
<div class="flex xs12 md12">
<DxFileManager
:file-system-provider="dataSource"
current-path="Widescreen"
>
<DxPermissions
:create="true"
:copy="true"
:move="true"
:delete="true"
:rename="true"
:upload="true"
:download="true"
/>
</DxFileManager>
</div>
</div>
</va-inner-loading>
</div>
</template>
I have tried to use the following methods:
$(function() {
$("#fileManagerContainer").dxFileManager({
// ...
onCurrentDirectoryChanged: function(e) {
// Your code goes here
}
});
});
Unfortunately, the above method did not work as expected.
By the way, I am using this plugin: