jQuery UI Widgets Forums Editors FileUpload Response is undefined

This topic contains 0 replies, has 1 voice, and was last updated by  mathod 4 months, 1 week ago.

Viewing 1 post (of 1 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

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.