We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

mailbox attachments, file types? | Forum

Topic location: Forum home » Support » General Questions
matt
matt Sep 6 '13
Hi,

What file types can mailbox attachments accept. And where can I add to that list?

Cheers,

Matt
matt
matt Sep 7 '13
Anyone? Atm, I am having to ask users to zip their attachments, so they can send files. Which seems to be putting them off. Lazy *&%9*Y89

:)
matt
dave Leader
dave Sep 7 '13

Several places in the core you would need to mod.

 

 in ow_system_plugins/base/controllers/attachments.php  Line 76

 

'jpeg', 'jpg', 'png', 'gif'    you would need to add there.

 

in ow_plugins/mailbox/bol/converstation_service.php  Line 67

 

   array(
        'txt', 'doc', 'docx', 'sql', 'csv', 'xls', 'ppt',
        'jpg', 'jpeg', 'png', 'gif', 'bmp', 'psd', 'ai', 'pdf',
        'avi', 'wmv', 'mp3', '3gp', 'flv', 'mkv', 'mpeg', 'mpg', 'swf',
        'zip', 'gz', '.tgz', 'gzip', '7z', 'bzip2', 'rar'

 

you would need to add here.

 

 

I think that is all, have not tested and not 100% sure but i think that is it..

 

Remember by changing the core you will need to replace those or make sure oxwall has not already done so when you update.

 

matt
matt Sep 7 '13
Thanks Dave! You da man :)

I will give it a test on our dev install to check. I keep a list of mods for updates :) I will, eventually get round to making a script which applys all of our core mods. Or perhaps a plugin, now thats an idea :) Like an internal svn plugin...... *ponders*
dave Leader
dave Sep 7 '13
yw :)
ross Team
ross Sep 9 '13
Dave +1. As always :)