I think that this problem may have started to happen when I made an upgrade from 7.10.1 to 7.10.10
I was creating an email template last night and when I tried to add an image an entry appeared in Documents at the bottom of the form, but I wasn’t able to complete the upload and the image. I am wondering if this could be a permissions problem on the upload folder caused during the installation.
In the end I made a temporary fix by using images from another server, but it would be useful to solve this.
Also check your upload folder, to see if the file gets saved there (with an id, not the original filename, but you can tell by the date and by the size if it’s the same image).
I have had a look at this. Now, I bumped the log reporting up to error and repeated the upload attempt. No evidence in the system log.
I have had a look in the download folder on the cloud server and there are what look like about 20 uploads. This is similar to the number of attempts I may have made. What is odd is there are no file suffixes to these files. I uploaded .jpg and .png in my attempts.
The files have IDs like this - f64902a7-f802-a105-7dcd-5be165ad526f
I can see .csv files that I uploaded which have their suffixes.
That is useful. I can see that images are uploading but they appear to be creating attachments rather than images.
When I hover over the attachment link at the bottom of the message it shows one of the long IDs but at the end &type=notes which doesn’t look right.
To be clear the whole process I am going through is:
In the mosaik editor click insert/edit image, this gives me a dialogue where I see Source and a folder search icon.
I click this and it opens the windows file browser.
I navigate to a file and select it.
It appears in the attachments listed for the file, there is nothing in the message body, not even a broken link - checking the source code the is no image tag not even an empty one.
Before the upgrade I had successfully uploaded images. I am running two different installations now both on 7.10.10 on different Centos 7 cloud servers both behave this way.
I wanted to post a screen shot, but the add attachments button doesn’t appear to do anything. Tried in Chrome, IE and Firefox.
I should add that I think when I went through the upload process before I think the source URL was filled in after I had selected the file in the windows browser.
The “notes” doesn’t seem wrong to me, attachments are notes.
I suggest a test where we avoid some of this complexity, to see if there is an underlying issue.
Create a new Note anywhere (not related to any email functionality), and add the same image file to it. Then check if you can download it correctly, and compare the URL with the one your email attachment was generating (by the way, which is it? please paste it here in full so I can look at it)
This is what I see after I have added an image ie. there is an attachment, which is now stored in the CRM, but nothing is added to the message body.
Before I go on can I say this is really helpful.
As you have suggested a note is being created which contains the image as an email attachments. If after the note is created I navigate to is open it and right-click copy link into the clipboard I can then paste this into the source field in the message and the image appears. The dimensions are also filled in correctly.
I’m sure I remember before that the source was automatically filled after upload rather than having to find the note and copy in the link. But at least for now this works as a workaround.
Can you spot a difference between the link that works and the one that doesn’t?
You might have to go in the database to see the link that doesn’t work, how it is saved in the email_templates table, if it isn’t shown in the browser. But probably in the browser’s Developer Console you can see it somewhere in the HTML.
I can paste any note link generated either by creating a new note, or by inserting an image and then getting the link from the notes panel and it is successful.
I think the only thing that isn’t working now the source field being filled at the time of upload.
I’d really like to compare that URL with the one that doesn’t work. When you add the image in the template, and it doesn’t show, can you find what the URL that is generated for it?
I tried a few things with Mozaik and the conclusion I am reaching is that Mozaik doesn’t really handle images from Windows (or any other local file system), it just seems to let you specify a path on the server.
When I add a pre-existing image, giving it the server path, it seems to recognize it.
I am not sure if this is a bug or a limitation that was always there. I normally use MCE, not Mozaik…