I want to adapt jquery-file-upload http://blueimp.github.io/jQuery-File-Upload/ to use like user profile image uploader,
1- only upload one image - you can restrict whit: maxNumberOfFiles: 1, but when try to add another image it lets you do that and show: Error Maximum number of files exceeded
2- edit image - upload another image and replace the preview
or please suggest another plugin to accomplish user profile image upload, regards.
我采用的是错误的方法,在这种情况下jquery-file upload允许您发送额外的字段用户ID,因此独立表单仅在每次选择一个autoUpload时才上传图像:true删除常规预览列表并在fileuploaddone上进行自定义预览仅一张图像。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.