no /usr/bin/file...alternative method to ID upload filetypes?

My statusnet installation is on godaddy shared hosting, CentOS 5, but, for no reason that makes sense, lacks some fairly common gnu-tools. It has no /usr/bin/file to identify uploads, so, when I attach a file, of any type, the upload gets ../somefile.cantfindcommandusrbinfile
as it's final resting place. Images and videos don't preview, etc., and, well, those URLs look pretty scary to Joe User.
Is there a means to bypass the use of file to ID uploads, and get SN to simply keep the existing file extension?

I've dug around in ../status/actions/attachment.php, file.php, getfile.php, attachment_thumbnail.php, attachment_ajax.php, etc., but haven't even been able to find where SN is using file to ID the uploads.

If I had root access, of course, I'd yum install file, or full gnu-tools, or whatever, but, being shared hosting, I do not, so I would like to find an alternative solution.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID