Steps before submitting issue:
I would like to modify item_id table for adding more columns like meta data, mime ,ext . I am very confused the call request happen on upload and refresh . file Data is inserted only after the first request after the upload success . I would like to make this on after upload process .
Can you idea how I can do this on my own ?
My Mollify version is 2.0-2_2
Thanks
Comment #1
Posted on Jan 11, 2015 by Swift DogItem ids are handled by class ItemIdProvider, and it is designed so that it creates new id entries whenever it encounters files/folders that don't exist in the table. This way files can be added outside Mollify, for example uploading via ftp or copying inside server.
Not sure if it's due to your old version, but at least latest version does trigger the item id generation already in the upload.
Anyway, the new item id is created in ItemIdProvider function getOrCreateItemId, but there you won't have any your own info.
Latest version has events like "create_item", "create_folder", "upload" which you could simply listen in your own plugin, and insert your metadata when new items are created. I wouldn't extend item_id table for other stuff, like it's name says it is about item ids. I'd create separate table "item_metadata" etc which would contain all other random stuff, and which would have same lifecycle as item ids (for this you could register item id cleanup handler etc).
But unfortunately I cannot give implementation support (only guidance etc) for custom features like this, not even for latest version but even less for older versions.
Comment #2
Posted on Jan 12, 2015 by Happy BirdThanks for your help.
Status: Invalid
Labels:
Type-Defect
Priority-Medium