Skip to content
This repository has been archived by the owner. It is now read-only.

Latest commit

 

History

History
74 lines (47 loc) · 1.55 KB

File metadata and controls

74 lines (47 loc) · 1.55 KB
layout post
title webAPI reference for ejUploadbox
description webAPI reference for ejUploadbox
documentation ug
platform js
keywords uploadbox, ejUploadbox, syncfusion, uploadbox webapi

Save

[POST] /Api/UploadBox/Save

It is used for storing the uploaded file.

URL parameters

Parameter Description
FileName Name of the files to be stored.

Response information

Code: 204 No Content

Content-Type: multipart/form-data;

Code example

{% highlight js %}

$(function () { $("#UploadDefault").ejUploadbox({ saveUrl: "http://js.syncfusion.com/demos/ejservices/api/UploadBox/Save" }); });

{% endhighlight %}

In the above example we have used webAPI named as Save in order to save the uploaded file.

Remove

[POST] /Api/UploadBox/Remove

It is used for removing the stored files from server.

URL parameters

Parameter Description
FileName Name of the files to be removed from the server.

Response information

Code: 204 No Content

Content-Type: application/x-www-form-urlencoded; charset=UTF-8

Code example

{% highlight js %}

$(function () { $("#UploadDefault").ejUploadbox({ saveUrl: "http://js.syncfusion.com/demos/ejservices/api/UploadBox/Save", removeUrl: "http://js.syncfusion.com/demos/ejservices/api/UploadBox/Remove", }); });

{% endhighlight %}

In the above example we have used webAPI named as Remove in order to remove the saved file.