BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
File Operations |
Events |
Create, Read, Rename, Delete, Details, Search, Copy, Move |
|
Download |
|
GetImage |
<div class=" control-section">
<div class="sample-container">
<!-- Declare filemanager element -->
<ejs-filemanager id="filemanager" beforeSend="beforesend" beforeImageLoad="beforeimageLoad" beforeDownload="beforeDownload">
<e-filemanager-ajaxsettings url="/Home/AzureFileOperations"
getImageUrl="/Home/AzureGetImage"
downloadUrl="/Home/AzureDownload"
uploadUrl="/Home/AzureUpload">
</e-filemanager-ajaxsettings>
</ejs-filemanager>
<!-- end of filemanager element -->
</div>
</div>
<script>
function beforesend(args) {
var data = JSON.parse(args.ajaxSettings.data);
if (args.action == "Upload") {
// Allow custom data for upload operations
data.push({ 'custom_attribute': "Syncfusion" });
}
else {
// Add custom parameter column
data["custom_attribute"] = "Syncfusion";
}
// Add custom parameter in ajax settings
args.ajaxSettings.data = JSON.stringify(data);
}
function beforeimageLoad(args) {
// Add custom parameter in image URL
args.imageUrl = args.imageUrl + "&custom_attribute=" + "Syncfusion";
}
function beforeDownload(args) {
var includeCustomAttribute = args.data;
includeCustomAttribute.custom_attribute = "Syncfusion";
args.data = includeCustomAttribute;
}
</script> |
public class FileManagerDirectoryContent1
{
public string custom_attribute { get; set; }
public DateTime DateCreated { get; set; }
public DateTime DateModified { get; set; }
}
public object AzureFileOperations([FromBody] FileManagerDirectoryContent1 args)
{
if (args.Path != "")
{
}}
public ActionResult AzureUpload(FileManagerDirectoryContent1 args)
{
if (args.Path != "")
{
}}
// Downloads the selected file(s) and folder(s)
public object AzureDownload(string downloadInput)
{
FileManagerDirectoryContent1 args = JsonConvert.DeserializeObject<FileManagerDirectoryContent1>(downloadInput);
return operation.Download(args.Path, args.Names, args.Data);
}
public IActionResult AzureGetImage(FileManagerDirectoryContent1 args)
{
return this.operation.GetImage(args.Path, args.Id, true, null, args.Data);
} |
Demo link |
|
UG Documentation |
|
API reference |
|