Upload files to the external IP of the server questions

4 posts, 0 answers
  1. Jong Woo
    Jong Woo avatar
    11 posts
    Member since:
    Dec 2013

    Posted 07 Jan 2014 Link to this post

    Have not been modified, as shown in the link below for a sample source in operation.

    http://182.225.168.126:8080/web/upload/initialfiles

    Well as upload. But I want to do a different server (PC) in the hope that the upload connection.

         <kendo:upload name="files">
             <kendo:upload-async autoUpload="true"
                  saveUrl="http://182.225.168.126:8080/web/upload/initialfiles/saveAndPersist"
                  />
         </kendo:upload>

    When you create a file upload is not as above. How can it possible?

    * Attach the test file.
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 08 Jan 2014 Link to this post

    Hi Jong,


    You could upload files to another domain via CORS, but this approach will work in modern browsers only, so it is not reliable if supporting older ones is a requirement. I would suggest you to take a look at the following resources, that might be helpful:
    HTTP access control (CORS)
    How To: Use CORS with All (Modern) Browsers
    Similar forum topic about Cross Domain Upload

    I hope this information helps.

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
  4. Jong Woo
    Jong Woo avatar
    11 posts
    Member since:
    Dec 2013

    Posted 09 Jan 2014 Link to this post

    Thank you Dimiter Madjarov.

    Cross-domain that I do not think this is the way you want.

    So try to jsp implementation only.

    Execution as an attachment to upload files normally. But it turns out a failed upload status window.

    Probably return ""; This could not be defined in a jsp like hydroponic. When the upload is complete, how do you come out?

    And the "data" parameter in save.jsp instantly receive what should I do?

  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 13 Jan 2014 Link to this post

    Hello Jong,


    From the provided information, it is not quite clear what is the expected behavior in the current case. If you would like to have total control over the output, you could declare a servlet. At the moment we do not have a complete example about this issue, but after a search online I found the following pages, that cover similar scenarios and include samples:
    Uploading a file in Java Servlet
    Multiple File upload using single servlet request

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
UI for ASP.NET AJAX banner