Log in

View Full Version : How to add attachment type?


XTF
03-01-2007, 12:00 PM
Hi,

What is the proper way to add an attachment type?
At the moment I insert it manually into the table, but then the cache of types needs to be rebuild manually (for example by 'editing' the type in ACP and changing nothing.
How can I do this automatically?

Marco van Herwaarden
03-02-2007, 12:36 PM
AdminCP -> Attachments -> Attachment Manager -> Add New Extension

XTF
03-02-2007, 04:06 PM
Hmm, I guess I should've said that I wanted to do it from a script.

XTF
11-07-2007, 12:45 PM
I can execute the SQL queries myself, but vB appears to cache that table and I've no idea how to flush that cache.
Anybody?

Marco van Herwaarden
11-08-2007, 07:25 AM
You will need to rebuild the datastore cache.

XTF
11-08-2007, 07:34 AM
You will need to rebuild the datastore cache.
Thanks. What's the function to call or where is that documented?

Marco van Herwaarden
11-08-2007, 07:56 AM
build_attachment_permissions();