0
SuperBeastX3 created
- ABP Framework version: v7.4
- UI Type: MVC
- Database System: EF Core
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
I am trying to access the file descriptor service in javascript.
I am using this line, which was taken from the file management javascript file:
var fileDescriptorService = volo.fileManagement.files.fileDescriptor;
I get the following error:
Cannot read properties of undefined (reading 'files')
I don't understand why.
2 Answer(s)
-
0
Hi,
You need to add the static JS proxy file.
<abp-script src="/client-proxies/fileManagement-proxy.js" />
Or add JS proxy file to global bundle:
Configure<AbpBundlingOptions>(options => { options.ScriptsBundles.Configure( LeptonXThemeBundles.Scripts.Global, bundle => { bundle.AddFiles("/client-proxies/fileManagement-proxy.js"); } ); });
-
0
Thanks, that worked for me.