weixin_33733810 2015-11-28 14:43 采纳率: 0%
浏览 42

使用Ajax上传Struts文件

I have one legacy project where we are using Struts 1. I have one requirement to upload some PDF file and I want to do it using jQuery AJAX. Could you please let me know if there is any way?

  • 写回答

1条回答 默认 最新

  • weixin_33720186 2015-11-29 16:17
    关注

    I am not sure whether you can send multipart/form-data through ajax. I remember resorting to form submission when I had to do a multiple selection file upload using struts 1.x in one of my projects, but I have seen a couple of threads which say so. For your reference, please go through them and let me know if that helps. file upload using ajax and File upload using jQuery ajax plugin.

    Do let me know if you are able to achieve this.

    评论

报告相同问题?