You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a problem with getting the plugin to store the filename in the database. It uploads the file just fine, but never saves the filename. My table looks like this:
CREATE TABLE crochet_items_files ( id int(11) unsigned NOT NULL AUTO_INCREMENT, crochet_item_id int(11) NOT NULL, title varchar(255) NOT NULL, filename varchar(255) NOT NULL, mimetype varchar(255) DEFAULT NULL, filesize int(11) DEFAULT NULL, created datetime DEFAULT NULL, modified datetime DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
I'm having a problem with getting the plugin to store the filename in the database. It uploads the file just fine, but never saves the filename. My table looks like this:
CREATE TABLE
crochet_items_files
(id
int(11) unsigned NOT NULL AUTO_INCREMENT,crochet_item_id
int(11) NOT NULL,title
varchar(255) NOT NULL,filename
varchar(255) NOT NULL,mimetype
varchar(255) DEFAULT NULL,filesize
int(11) DEFAULT NULL,created
datetime DEFAULT NULL,modified
datetime DEFAULT NULL,PRIMARY KEY (
id
)) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
and my model actsAs statement looks like this:
By the way, will FileUpload also save the directory path? I didn't see that among the options.
The text was updated successfully, but these errors were encountered: