Skip to content

Commit d87b052

Browse files
authored
Merge pull request #4012 from syncfusion-content/ES-906899-FM
906899: Core MVC How to pass custom value from client to server side in the File Manager component.
2 parents 56df53f + 7497387 commit d87b052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ej2-asp-core-mvc/file-manager/how-to/pass-custom-value-to-server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ For the **download** operation, use the **beforeDownload** event, setting **useF
132132
function beforeDownload(args){
133133
args.useFormPost = false;
134134
if (args.ajaxSettings) {
135-
(args.ajaxSettings as any).beforeSend = function (args: any) {
135+
args.ajaxSettings.beforeSend = function (args) {
136136
args.fetchRequest.headers.append('Authorization', 'User1');
137137
};
138138
}
@@ -158,7 +158,7 @@ function beforeDownload(args){
158158
function beforeDownload(args){
159159
args.useFormPost = false;
160160
if (args.ajaxSettings) {
161-
(args.ajaxSettings as any).beforeSend = function (args: any) {
161+
args.ajaxSettings.beforeSend = function (args) {
162162
args.fetchRequest.headers.append('Authorization', 'User1');
163163
};
164164
}

0 commit comments

Comments
 (0)