We should probably improve this in future, as it's not the most intuitive behaviour! I'll file a bug about it.
Where abouts is your site? I can log in and take a poke around for you. And what version of Mahara are you using? Since Mahara 1.1.0, the /usr/bin/file command is not needed, although it seems like the problem you're having is before not having it would cause a problem anyway.
Incidently, my site is able to receive and hold on to blog messages. That part IS working.
They eventually had someone write back with this advice:
I have carefully investigated the issue and indeed it doesn't seems that the upload function would be overloading the server or is reaching any kind of limit.
What seems to be the problem is that your website doesn't make a call to the server for the upload function at all. What the site uses is an AJAX call to get the folder content and upload the file. Inspecting it using FireFox and FireBug plugin shows that the AJAX request to list the folder files/directories completes successfully but no request to upload the file has been made.
I have also checked the server for any errors, but I'm afraid I wasn't able to locate any, thus I can assume the problem is within the script itself rather than a server related issue. I can recommend you to get in touch with mahara developers and ask them for further details what might be causing the problems. The three possible problems listed in your initial reply are not the cause (or at least it doesn't seems so) in your case:
* The files you're uploading are too big - most servers default to a 2MB limit (unlikely)
The file is way below the upload max filesize
* Your server has some kind of limitation, e.g. on exec() being called
There is no such limitation. You can see that here in my test.php file I have just created. It executes the ls command perfectly:
http://missiodei.com/test.php
* /usr/bin/file isn't installed on your server
The /usr/bin/file is present on the server as you can see below:
root@site238:/home/missiod1/public_html# which file
/usr/bin/file
root@site238:/home/missiod1/public_html#
Please let us know what the developers of the script recommends and what else they think might be causing the issue.
I am not all that tech savvy, but by following the steps I did, I hope someone in the Mahara Community can step up and point out what the problem is. I would appreciate it very much.
Thomas Soerens