BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
LAST DAY 1 DEC
00 Days
00 Hrs
00 Min
00 Sec
Open Closed

Accessing volo.fileManagement.files.fileDescriptor Service in JS #6406


User avatar
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)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    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");
            }
        );
    });
    
  • User Avatar
    0
    SuperBeastX3 created

    Thanks, that worked for me.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.