Hi,

The module appears to be installed correctly. I didn't use any different directories, no other conflicting modules, clean urls are on, and the pictures go to the tmp directory like they are supposed to. The problem is, they don't show up as a preview. I see the little Ajax spinner, then it says "* Your picture will not be saved until you click Save". I tested in both Firefox 3 RC2 and IE 7, with an Admin account and a regular user. Nothing changes. Tried it through multiple installs too.

The only things I change are the maximum file size to 50 and the dimensions to 120x120. Still, I was testing with very small 100x100 pictures. Could any of this have anything to do with what is going on? I can't even see an outline of where a preview might be.

I'm not sure what other info to provide. I'm new to all of this. Thanks.

Comments

mmilano’s picture

The first time you upload an image for the account, you just won't see the picture because that element doesn't exist on the page. (maybe i'll work on a solution for that)

The upload should still work though. Once you select your picture, even the first time, you should see text that says: Upload picture: * Your picture will not be saved until you click Save.

Once you save the page, you should see the photo to the right of the browse button. (default drupal behavior)

It's at this point where if you select a new image, the one on the right should be replaced.

Download the latest dev snapshot and see if that helps any. I'm testing on FF3 with admin user at the moment. I also tested with your file size and dimension settings and there was no problem for me.

mmilano’s picture

Status: Active » Postponed (maintainer needs more info)
mariuss’s picture

Version: 6.x-1.1 » 6.x-1.2

Having the exact same issue, and version 6.x-1.2 is the same as the dev version at this point.

If you cannot preview the picture during the very first upload, then the module is almost useless. Most users will only upload only that first picture. The warning message that you need to save does help.

Does preview work for you for the first image as well? I am using FF3 on Linux. Let me know how can I help.

hankpalan.com’s picture

I actually ran into this problem once I installed ImageCache Profiles. The only difference is that it works fine in FF but not IE.

fm’s picture

I am having this same problem. In profile when I try to upload an image I receive the message "* Your picture will not be saved until you click Save" and no picture preview. While the picture uploads to the server anyway, it apparently isn't associated with the profile record and won't display. I too have installed imagecache_profiles. When I disable AJAX Picture Preview, the problem goes away -- I can then upload images that display properly with the profile.

KC-1’s picture

I am having a similar problem to #5.

In profile when I upload an image I receive the message "* Your picture will not be saved until you click Save" and there IS a picture preview.

After saving the image is not associated with the profile.

When I disable AJAX Picture Preview, the problem goes away -- I can then upload images that display properly with the profile.

I have changed line 164 in ajax_pic_preview.module from
$('.picture a img').attr('id', 'img-picture');
to
$('#user-profile-form .picture img').attr('id', 'img-picture');

as per post http://drupal.org/node/515484, but this didnt help.

oakstream’s picture

Has anyone figured out how to solve this yet?
For me, it's working fine in Firefox, but not in any other browser I've tried.

I'd really appreciate if anyone could point me to a solution.

Thanks / Daniel

borys’s picture

Hello, i have figured out the problem, but haven't fixed it yet.

The problem is in "ajaxfileupload.js" file on 38 line with jQuery clone method. The element is not cloned correctly in Chrome and some other browsers. Firefox is working correctly.

eugene.ilyin’s picture

Hello. I'm new maintainer.
Now module has been refactored and work correctly.

eugene.ilyin’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I made a new version, most likely the problem is no longer relevant. You can try to install the new version of the module. I will be grateful for your feedback and comments.