Page 1 of 1

Not images in Media Library?

Posted: Sun May 08, 2005 4:34 pm
by pano
When i import a mp3 file from admin, it takes it as a wbmp file. And when i link to a non-image file, it writes the img label with src to the non-image file.

Is there some way -or plugin- that lets import non image file to the Media Library? And when inserting them... that inserts a href label with the file as target of the link...

If not, the only way i guess is to upload by ftp the files and writing html code to make the links to those files.

Thanks for any help or comment ;)

Re: Not images in Media Library?

Posted: Mon May 09, 2005 2:04 pm
by garvinhicking
Which serendipity and PHP version are you using?

Serendipity relies on the PHP mime detection facilities and falls back to using file extesnsions.

Also your SErendipity installation may have a corrupted "images" table with incomplete columns. Check the sql/db.sql file for that table and see if all columns are present, please.

Because non-image files in 0.8 are possible without any problems...

Regards,
Garvin

Posted: Tue May 10, 2005 9:11 am
by pano
Looks like the estructure is the same in my images table and the sql file from original installation:

This is what phpmyadmin exports as estructure from my images table:

Code: Select all

CREATE TABLE `vtres_images` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL default '',
  `extension` varchar(5) NOT NULL default '',
  `mime` varchar(255) NOT NULL default '',
  `size` int(11) NOT NULL default '0',
  `dimensions_width` int(11) NOT NULL default '0',
  `dimensions_height` int(11) NOT NULL default '0',
  `date` int(11) NOT NULL default '0',
  `thumbnail_name` varchar(255) NOT NULL default '',
  `authorid` int(11) default '0',
  `path` text,
  `hotlink` int(1) default NULL,
  PRIMARY KEY  (`id`),
  KEY `imagesauthorid_idx` (`authorid`),
  FULLTEXT KEY `pathkey_idx` (`path`)
) TYPE=MyISAM ;
Really is not a big problem... i thought that i was able to import only images... but it would be good if i could work with any kind of file.

I forgot... i use 0.8beta5... i know i must update... but i edited several files (function_entries, plugin_internal...) and i am lazy to update these files as well :roll:

Thanks!

Posted: Tue May 10, 2005 1:11 pm
by garvinhicking
Pano, I think fixes have been made for this in later 0.8 versions. You will need to try the final version :)

And share your patches, maybe we can include them in our distribution! :)

Regards,
Garvin