简体   繁体   中英

File upload in with Lithium framework

How does Lithium framework file upload work with MySQL? I can find only tutorials and information with MongoDB. Tried to do that with MySQL but failed, upload doesn't work.

Can someone explain how it works with simple example?

Do it like you would using plain PHP .

MongoDB has GridFS where you can store files, which can be done in MySQL too (using BLOB ) but is not recommended. Use the filesystem instead move_uploaded_file() .

I'm working on a plugin, much like paperclip for rails. it's called li3_attachable and can be found here https://github.com/sandelius/li3_attachable .

It's not ready yet but I hope it should be stable this weekend. I've also added some docs in the wiki.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM