thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

Part 79 - Dynamically Change Preview Image on Upload #152

Closed AnderSco01 closed 8 years ago

AnderSco01 commented 8 years ago

Hello,

I am having an issue with this one. I have done everything said but whenever I try to upload an image it never updates immediately. The jQuery, displaying avatar, DropZone form and avatar file code is attached. By the way, the file names and id variables are my own. Any help would be much appreciated thank you.

dropzone_fault.txt

creptor commented 8 years ago

Hi.. I belive your code is fine, what you should do is verify that an image is sent from the actual ajax script... something like this: <img src="uploaded/<?php echo $user_opened['avatar']; ?>"/> so that it loads the image again :P if this is not the error, please post the ajax script here :3

AnderSco01 commented 8 years ago

Thanks creptor, I moved the jQuery script to the bottom of the page, seems it did not detect it, all ok now, thank you very much!