2

I'm using upload control in the following manner:

uploadContainer.igUpload({
        mode: 'multiple',
        multipleFiles: true,
        maxSimultaneousFilesUploads: 2,
        maxUploadedFiles: 2048,
        labelUploadButton: "Choose File",
        labelAddButton: "Choose File",
        labelClearAllButton: null,
        autostartupload: true,
        onError: function(e, args) {...some function...},
        fileUploaded: function(e, args) {...some function...},
        allowedExtensions: ['dwg', 'DWG']
    });
  • Current user, when arrives on the page, could upload a file.
  • After uploading, he expects some information to be returned from uploaded file.I have to display list of layouts of the dwg file per example.
  • Into my upload handler class at the back-end, "FinishedUpload" method is called. There, I'm reading the file, extracting some information from it and I want to return this information back to the front-end.

How to accomplish that? Any ideas are welcomed!

Thank you!

4

1 回答 1

1

将附加数据发送到服务器 Upload MVC Wrapper 和客户端上的 igUpload 控件(反之亦然)的信息将在 Ignite UI 2015 年 6 月服务版本中提供。

您目前可以做的是处理客户端的fileUploaded事件并向服务器发送一个额外的 Ajax 请求以获取您想要的数据。

于 2015-05-26T11:01:37.587 回答