General > Support

"Error uploading file "file.png": Error moving file." when uploading avatar

<< < (2/2)

faf:

--- Quote from: Technobrarygeek on November 20, 2013, 02:48:33 PM ---It seems the program can't upload an image (I have a number of other sites where "site" file uploading is not an issue) and the only way to manually add an avatar is to edit the database.

--- End quote ---

Mibew uses standard move_uploaded_file function to handle uploaded avatar. Maybe there are some reasons why uploaded avatar cannot be moved...  ???

Probably you can try to change @move_uploaded_file with the move_uploaded_file and check out any warnings that could occur.


--- Quote from: Technobrarygeek on November 20, 2013, 02:48:33 PM ---Before I go stomping around in the database, I would like to know what needs to be changed in the database specifically.

--- End quote ---

As it was written above, there is a table <prefix>chatoperator that contains all operators' data. The field vcavatar stands for avatar image. So, if you know the location of the avatar you could set the value of that field manually.

For example, if the URL of the avatar is http:// <your domain>/<path to your Mibew>/images/avatar/1.jpg, the value of vcavatar field should be /<path to your Mibew>/images/avatar/1.jpg

Navigation

[0] Message Index

[*] Previous page

Go to full version