Skip to content
josegonzalez edited this page Sep 13, 2010 · 1 revision

When you upload files, the upload itself can contain more detailed information, such as path, mime type, and the file’s size. MeioUpload can optionally include this data on the fly. For example, here is a table that would support all of this metadata:


 CREATE TABLE `images` (
     `id` int(8) unsigned NOT NULL auto_increment,
     `image` varchar(255) default NULL,
     `dir` varchar(255) default NULL,
     `mimetype` varchar(255) NULL,
     `filesize` int(11) unsigned default NULL,
     `created` datetime default NULL,
     `modified` datetime default NULL,
     PRIMARY KEY  (`id`)
 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

  • dir – contains the path to the file (excluding the filename)
  • mimetype – contains the file’s mimetype
  • filesize – contains the file’s size in bits

You can include any and all of these fields, and each is configurable using the $actsAs configuration array.

Clone this wiki locally