Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function subirImagen(fileURL) {
- var options = new FileUploadOptions();
- options.fileKey = "imagen";
- options.fileName = fileURL.substr(fileURL.lastIndexOf('/') + 1);
- var ft = new FileTransfer();
- ft.upload(fileURL, encodeURI("http://localhost:8080/HelloSpringMVC/hello"), uploadSuccess, uploadFail, options);
- }
- @RequestMapping("/hello")
- public String RecibeImagen(@RequestParam("file")MultipartFile image) {
- System.out.println("Imagen recibida");
- return null;
- }
Add Comment
Please, Sign In to add comment