[英]Upload the image and save it to local project folder
i'm developing a user registration page, in this page i have to upload user's image.later selected image has to save in my local project folder, and file path is going to database. 我正在开发一个用户注册页面,在此页面中,我必须上传用户的图像。后来选择的图像必须保存在我的本地项目文件夹中,并且文件路径将进入数据库。 how can i upload the image to local project folder. 我如何将图像上传到本地项目文件夹。
Technologies used: AngularJS, Java Spring framework, Tomcat server 使用的技术:AngularJS,Java Spring框架,Tomcat服务器
you can use ng-file-upload ( https://github.com/danialfarid/ng-file-upload , check also its examples section) module 您可以使用ng-file-upload( https://github.com/danialfarid/ng-file-upload ,另请参见其示例部分)模块
examples: https://github.com/danialfarid/ng-file-upload/wiki/spring-mvc-example http://javatutorials.io/java-core/upload-file-angular-ng-file-upload/ 示例: https : //github.com/danialfarid/ng-file-upload/wiki/spring-mvc-example http://javatutorials.io/java-core/upload-file-angular-ng-file-upload/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.