Loading...
 

Features / Usability


"File not an image" error when inserting files

posts: 2 United States

We am running tikiwiki 14.0, and every time we insert a non-image file (pdf, doc, txt, etc), we get the error message "file not an image". This happens whether we use the insert File or Insert Image buttons.

We would rather that our users not need to know html to add content, but we have found that we can force a link to appear by clicking the source button in the toolbar and changing the html tag from img to files (img fileId="895" ... to 'files fileId="895"'...)

Based on another post, I added "extension=php_fileinfo.dll" to my php.ini file, but that seemed to have no effect (the contents of my php.ini are listed below).

I am a bit of a newbie, but I haven't seen foud any other recent postings that seem refer to this issue. Does anyone have any ideas about how we could fix this or what to try next?

Thanks for your help!

-- php.ini --
default_charset = "utf-8"
mbstring.internal_encoding=utf-8
mbstring.http_output=UTF-8
mbstring.encoding_translation=On
mbstring.func_overload=0

ExtensionList
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_mbstring.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_curl.dll
extension=php_exif.dll
extension=php_xmlrpc.dll
extension=php_openssl.dll
extension=php_soap.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll
extension=php_imap.dll
extension=php_tidy.dll
extension=php_fileinfo.dll


posts: 2 United States
Thanks for the reply! I tried to insert a pdf file on the demo site, and the same thing happened there (File is not an image). I also tried with a text file and a zip file, and both of those seemed to be ignored.I am using the "Insert Image" button when editing the page - should I be doing this another way? I didn't see an "Insert File" button, and I haven't found anyplace in the docs that address that.Thanks again for your help (and patience)...:) 
posts: 3563

The Choose or upload images button, by default, uses the No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId, id, or src. construct, and will only dipslay images. You should use the Files button (which will use the {file....plugin) to upload your files. Here's what I see on the Tiki demo site: https://demo.tiki.org/14x/

Image1  

If you don't see the Files button on your site, you can simply edit the toolbar and add it. See the docs (https://doc.tiki.org/Toolbar) for details.

HTH,

 

HTH,

- Rick  |  My Tiki Blog |  My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.