jQuery UI Widgets Forums Editors FileUpload Response is undefined

This topic contains 1 reply, has 2 voices, and was last updated by  admin 4 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Response is undefined #105214

    mathod
    Participant

    Hello
    I have a problem with jqxFileUpload.
    My upload is working, but response doesn’t work…
    I have java for backend, ( and using spring and not JSP, but it should be the same…
    I have follow tutorial for java JSP.

    	@PostMapping(value = "/simulation/uploadStimuli")
    	private void uploadStimuli(@RequestParam("fileToUpload") MultipartFile[] file, HttpServletResponse response) throws IOException, ParseException {
    		
    		for (MultipartFile f : file) {
    			[...]
    		}
    		  response.setContentType("text/html; charset=UTF-8");
    	          response.getWriter().write("ok");
    	}

    But the response in args.response = undefined…

    But when i check the response in Network in my debug console, I receive “ok”…
    So, it works… But don’t understand why my args.response = undefined…

    Do you know why?

    thanks a lot

    Response is undefined #107635

    admin
    Keymaster
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.