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

Upload files to the external IP of the server questions

3 Answers 115 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Jong Woo
Top achievements
Rank 1
Jong Woo asked on 07 Jan 2014, 12:59 PM
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.

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 08 Jan 2014, 12:23 PM
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!
0
Jong Woo
Top achievements
Rank 1
answered on 10 Jan 2014, 04:48 AM
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?

0
Dimiter Madjarov
Telerik team
answered on 13 Jan 2014, 01:38 PM
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!
Tags
Upload
Asked by
Jong Woo
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Jong Woo
Top achievements
Rank 1
Share this question
or