php - blueimp jQuery-File-Upload not displaying thumbnail after uploading the image -
i have downloaded latest plugin , dependencies here version 9.12.1. copied downloaded files in wamp server , accessed localhost/jquery-file-upload-9.12.1/index.html.
after selecting image file, preview of image displayed before uploading. once image uploaded thumbnail not getting displayed.
however in inspect element link of thumbnail present in image src.
file uploaded in server folder , thumbnail created.
name , size of image getting displayed.
what doing wrong ?
making dirty tricks ... loop until image ready before showing preview image.
see jquery: check if image exists. in case use before image tag ...
while(urlexists(file.path) != 200) { console.log("still loading image"); } <img src="=file.path" width="100px">
the problem writing image little late response client. , 404 error image after rendering html. image exist when checked. above snippet ,i trying wait loading image after server has created image. know not way works. believe error not happen @ production mode , trying fix running @ localhost.
Comments
Post a Comment