Forum
All assets being inserted as images
Is there a way to control the output from an asset tag uploaded from within SimpleMDE? When uploading files, or when inserting existing files (pdf or docx), I get the expected [cms:asset 1234] in the editor but the generated output is always wrapped in image tags; ie:
<img src="/resources/myfile.pdf" alt="My File Title">
instead of just /resources/myfile.pdf
or <a href="/resources/myfile.pdf">My File Title</a>
I feel like I must be missing something; any help would be appreciated.
EDIT: Can't reply to this thread because it's closed. If anyone has the same problem: the solution was to enable the php fileinfo extension.
I should be an image when you use the image button, and a file when you use the file button. Is that not happening?
Both the image upload and the file upload output image tags onto the page. I've just tried it in a test environment and it works as expected, so I'm guessing it's not a template issue. My diagnostic info in case it's useful:
You're on an old version. Is it still happening once you're up to date?
Sorry, I didn't realise there were any newer versions than I was currently using (you guys update too quickly haha). I've updated to 3.0.8 but I unfortunately still have the same issue.
Ok, we'll run some tests.
Thanks Drew
Is there any update on this? I'm experiencing the same issue.