This is a migrated thread and some comments may be shown as answers.

Kendo Upload with Struts Framework

1 Answer 116 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Cad
Top achievements
Rank 1
Cad asked on 22 Apr 2014, 01:02 AM
Hello my name is Carlos Adrian I have trouble integrating KendoUI upload a JSP with Struts web project, I try to mapping my POST request to my Controller but it always empty.
Can anyone help me please?
<!--This is a part of my code on the JSP page-->
<div class="col-sm-12">
  <input type="file" id="attachments" class="id-input-file-2"/>
</div>
<script type="text/javascript">
 
    $(function() {
        $("#attachments").kendoUpload({
            async: {
                saveUrl: "\anexos",
                removeUrl: "\anexos",
                autoUpload: true
            }
        });
         
    }); 
 
</script>

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 23 Apr 2014, 09:58 AM
Hi Cad,


I am not exactly sure how the requests are mapped in Struts Framework. As a general information the Kendo UI Upload widget uploads the files via a standard XMLHttpRequest with FormData in modern browsers or via a form in a hidden iframe in legacy browsers. This means that if the current issue is reproducible even without the Upload widget, but with a separate XMLHttpRequest, you could look for help on stackoverflow, where more people might be familiar with Struts.

At the moment we can provide examples and documentation for the Spring MVC Framework.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Upload
Asked by
Cad
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or