can't upload Images in user profile

can't upload Images in user profile

од amal barathi -
Број на одговори: 25
I am not able to upload Images for recognizing users in thier profile.

Its a jpg file with 1MB size.

When I upload the file I receive this message "Cannot unzip pictures file."

And the Image file doesn't get uploaded.

Can anyone help me on this.

Thanks

Просек на рејтинзи: -
Во одговорот до amal barathi

Re: can't upload Images in user profile

од John White -
Amal,

This is probably a question of which upload tool you are using!

If you are using Moodle 1.9 you have...

Tool 1:
Site Administration->Users->Accounts->Browse List of Users

When you want to upload just one picture for one user, go into 'edit' in that user's profile,
find the 'New Picture' field, click Browse, and pick up your .jpg file.
When you click Save Changes the file is uploaded.

Tool 2:
Site Administration->Users->Accounts->Upload User Pictures

When you have lots of pictures to upload to users, use this bulk upload tool.
In this case every picture file has to be named to match the user (typically matched by Username),
and then all the picture files have to be zipped into one file (a .zip file).

So, for example,

user01.jpg
user02.jpg
user03.jpg

...all sit in one zip file user_pictures.zip.

Because you are using Tool 2 to do Tool 1's job, it is saying it can't unzip what actually is already a .jpg file!

Well, thats my guess anyway.

Regards,

John
Во одговорот до John White

Re: can't upload Images in user profile

од amal barathi -


Thanks John

I am useing moodle 1.9

I couldn't use the 1st tool , as the 'New Picture' field doesn't seem to exist.

I tried the 2nd Tool. I uploaded 2 pictures using zip file. I recieved this error.

Upload user picturesHelp with Upload user pictures (new window)

Cannot save picture for user USER1. Check original picture file.
Cannot save picture for user USER2. Check original picture file.
Users updated: 0
Errors: 2


I have not uploaded any picture's for the respective users.

I am not sure what it means by check Original file.

Can anyone help me on this.


Во одговорот до amal barathi

Re: can't upload Images in user profile

од Filipe Carneiro -
I also don’t have the avatar option ('New Picture' field) in the user profile.

I’vechecked $CFG->disableuserimagesin in config.php and it was ok (I’ve tried removing the entry and with FALSE value)

Did you solve your problem? I'm using Moodle 1.9.1+(Build 20080625), mySQL 5.0.51, PHP 5.2.5 and Apache on Windows 2008.


Во одговорот до amal barathi

Re: can't upload Images in user profile

од Anthony Borrow -
Слика од Core developers Слика од Plugin developers Слика од Testers
Amal - I've seen cases when the user has provided invalid directory for the zip/unzip files and thus the zips and unzips fail. Another possibility is that its a files permission error. Could you start by verifying if there is anything listed for the paths to the zip and unzip files in Server -> System paths in the Site Administration block? Are the jpg files named appropriate such that for each filename.jpg there is a username that corresponds to the username. In other words, from the pic it indicates that you should have a username of user1 and user2 in your system. If you have a student with a username of smartguy then there should be a file in the zip file called smartguy.jpg. Let me know if any of this helps. Peace - Anthony
Во одговорот до amal barathi

Re: can't upload Images in user profile

од Marty Billingsley -
I'm seeing the exact same problem.

I get the same errors as above when I try tool #2.

Can't use tool #1, as there is no "Picture Of" section in a users profile. (This is what I'd really like to get working, as I want my students to upload their own photos.)

Moodle 1.9.3 on MacOS X server, Daarwin Kernel Version 9.6.0, Apache 2.2.9

This seems like it might be a config issue, as so many folks are reporting the same problem. Suggestions?

Thanks
Во одговорот до amal barathi

Re: can't upload Images in user profile

од Justin Tiernan -
Во одговорот до Justin Tiernan

Re: can't upload Images in user profile

од Apar Suri -
I am having the same issue. There seems to be no field to actually upload profile image in the edit profile section and if I try to use the tool 2 as specified above, I get the exact same error.

Please reply if someone has a clue as to what the issue can be.
Thanks.
Во одговорот до Apar Suri

Re: can't upload Images in user profile

од Morris Gabriel -
same problem here.
Во одговорот до Morris Gabriel

Re: can't upload Images in user profile

од Morris Gabriel -
UPz this thread in case anyone resolved this issue and can share the solution. Thanks!
Во одговорот до Morris Gabriel

Re: can't upload Images in user profile

од jim richardson -
Having same issue with our site. In seeking the solution, I made the mistake of ticking the box to delete my old image...now I have none, and can't load my own or any other user's either. Tried bulk upload correctly but that fails also.
Moodle 1.9.4+ , PHP = 5.1.2, Mysql=5.0.18, running on Windows 2003 IIS.
Anyone found the answer yet?
Во одговорот до jim richardson

Re: can't upload Images in user profile

од Morris Gabriel -
another affected site... we need help here....
Во одговорот до Morris Gabriel

Re: can't upload Images in user profile

од Terri Ann Bennett -
We do not have this option either. We did, but now we don't

Terri Ann Bennett
Во одговорот до Terri Ann Bennett

Re: can't upload Images in user profile

од jim richardson -
Bump...any answer yet?
Во одговорот до jim richardson

Re: can't upload Images in user profile

од Anthony Borrow -
Слика од Core developers Слика од Plugin developers Слика од Testers
I am happy to work with folks but it would need to be one person at a time. I am not sure exactly what problem folks are having or why. It sounds like it could be a variety of issues and while it is helpful to know that a number of folks are struggling here in order to help identify the problem we need more information about your installations. It is a safe bet to always include your Moodle version number (1.9.x) as that is usually the first question. Next will be your OS, PHP version, database. I am a big fan of screen shots so that I can see exactly what page you are looking at. So feel free to provide more information so that we can figure out what is happening. I do not think it is everyone experiencing the same issue. I suspect there are various issues that need to be addressed so let's track them down in a nice controlled manner. Peace - Anthony
Во одговорот до Anthony Borrow

Re: can't upload Images in user profile

од Morris Gabriel -
im using windows 2003, moodle 1.9.3, php 5.2.5, mysql 5.

i get the same error as posted earlier when it comes to uploading pictures for users.

as for individuals uploading their own image, that option is not even present. there is no "Picture of" option for the user to upload his image. As u can see, i managed to upload a photo here of my daughter, but in my moodle setup, the feature is just not there.
Во одговорот до Anthony Borrow

Re: can't upload Images in user profile

од zainudin ghazali -
I am having same problem with Mr. amal with no "Picture Of" section in Edit Profile.

I solve mine with this step;

1) check for my gd version at Server > PHP Info (mine is version 2.0.34)

2) go to Server > System Path, i saw the default as "GD not installed". So i change it to "GD 2.x installed" and press [Save Change]

After that the "Picture Of" appear.

Hope that help.


Прилог my_gd.JPG
Во одговорот до zainudin ghazali

Re: can't upload Images in user profile

од Chad Outten -
ZG is correct. for those moodlers who don't have the ability to upload images to user profiles: you need to ensure the gd2 library is included and enabled as part of your php build.

Chad
Во одговорот до Chad Outten

Re: can't upload Images in user profile

од miquel àngel amengual -
Mr Outten,

problem fixed on my 1.9.4 Moodle with your piece of advice.

Thanks
Во одговорот до miquel àngel amengual

Оваа објава во форумот е избришана

The content of this forum post has been removed and can no longer be accessed.
Во одговорот до Избришан корисник

Re: can't upload Images in user profile

од andy giles -

Hi All,

My GD info is correct and all the other requirements to this feed are correct to my knowledge, however i still cant upload pictures. when i try to manually add a photo it will allow me to select etc but it doesnt seem to respond and when I update my profile there still isnt a photo, any ideas i am sure its something simple!

Во одговорот до andy giles

回复: Re: can't upload Images in user profile

од Hongliang Ma -

I had the same problem once, but I solve it now. My solution is that make sure the "moodledate" files in sever has the write permission for internet users. 

However, I don't know whether my solution will cause any danger to our sever?

Во одговорот до amal barathi

Re: can't upload Images in user profile

од Luis Cojulun -

Hey there!!!

Im having this issue: users and admin upload pictures kbs/mbs no more than 1mb, as *.jpeg(jpg),*.png. GD version 2.0.34 Compatible its installed on the php info and appears on Moodle as well. But User´s pictures/imagenes appears X, cant be seen.

Any idea, please.

Best regards,