Hello,
I want to use your EJ 2 Uploader for my Angular app but I couldn’t find an example of what my C# REST controller should have or look like.
Could you please point me to where I’d find an example of it?
I’m thinking of something like the controller that is listening to your example in the URL: https://aspnetmvc.syncfusion.com/services/api/uploadbox/Save
Thank you for your help.
|
<ejs-uploader id="UploadFiles" [asyncSettings]="path" (uploading) = "addHeaders($event)" (removing) = "addHeaders($event)">
</ejs-uploader>
public addHeaders(args: any) {
args.currentRequest.setRequestHeader('custom-header', 'Syncfusion');
}
|
|
Response.Headers.Add("status", "File Already Exists"); |
|
|