Had this issue too with a fresh install of 5.0.0b.
The message "The file format of the image must be JPEG or PNG. Upload a new file with the file extension .jpg or .png" comes from module modules/Configurator/EditView.tpl
In this module the file which should be uploades is checked with a php-function getimagesize.
If you insert an alert message in the EditView.tpl like this:
Code:
function uploadCheck(quotes){
//AJAX call for checking the file size and comparing with php.ini settings.
var callback = {
success:function(r) {
var file_type = r.responseText;
//KUS
alert("file_type("+file_type+")");
//KUS
if(file_type == 'empty'){
//field empty
}else{
You will get the real reason for the bug, the alert shows:
file_type(<br />
<b>Warning</b>: getimagesize("D:\sugarcrm\my_logo.png)[a href='function.getimagezize</a>]:failed to open stream: No such file or directory in <b>D:\SUGAR-xampp\htdocs\sugar500b\modules\Configurator\Upload FileCheck.php</b> on line <b>57</b><br />
other)
Now you can see that this is a bug in Sugar 5.0.0b, bcause the full qualified path of the file on the uploading client is checked. This is senseless, Sugar has no access to this file - execpt client and server are on the same machine.
To solve this issue, you can copy the file to the same directory as your local directory and upload it then again. This will work. After uploading you can delete the directory again.
I posted it as BUG # 20099
Bookmarks