Changing getImageUrl on search request to server

Hi,

i changed all the 'ajaxSettings' to be able to have dynamics locations of the folderss, as i request a specific Endpoint for a CRUD operation.

An example:
api/ImageProvider/FileOperations?companyId=${this.companyId}&category=${this.category}&id=${this.id}

It's working fine when i use: Create, Read, Delete, Upload.
But when i send a search request (via the input search), there is no way to added queries in the path of the get request ('
getImageUrl'), it look that it doesn't use the 'ajaxSettings'.

I go trough all the API specification (properties and method) - https://ej2.syncfusion.com/angular/documentation/api/file-manager/
And i didn't find a way to modify that URL path, to add queries in it, for the search requests. 

Is there a dynamic way to modify the request, without overriding the code in node-modules?

Thanks a lot for your help.



3 Replies

IL Indhumathy Loganathan Syncfusion Team August 15, 2023 11:57 AM UTC

Hi Jeremie,


Greetings from Syncfusion support.


We have prepared the File Manager sample as you have suggested but unable to face the reported issue at our end. We have added additional properties with values in the Url and performed search operation in the File Manager but the image file loaded properly at our end. Check out the below screenshot.



Sample: https://stackblitz.com/edit/angular-vlxukk?file=src%2Fapp.component.html


Service provider: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ej2-aspcore-file-provider-1978892932


For your reference, we have attached sample and service provider. If we misunderstood, replicate the issue in the shared sample and share us the exact steps you followed to replicate the issue. These details would help us assist you promptly.


Regards,

Indhumathy L



JS Jeremie Seguillon August 17, 2023 07:57 AM UTC

The problem was from the Backend, thanks for your help.



IL Indhumathy Loganathan Syncfusion Team August 18, 2023 06:29 AM UTC

Jeremie, We are glad that your reported query has been resolved. Please get back to us if you need any further assistance.


Loader.
Up arrow icon