I've got the same problem as in this thread: The filenames of all uploaded files are converted to .txt. I've commented on said thread, but since the first hints didn't work I start a new thread here.
I'm running StatusNet 0.9.7beta3 on a Cherry Server at cyon.ch. I don't have shell access, but can have a custom php.ini ( http://cl.ly/5Fkg ) in which I allowed shell_exec and ecex, which according to cyons support should help the PEAR Library MIME_Type to detect the file type.
@habi I think your site path should be two single quotes instead of false. You should also check the permissions on your /avatar and /file directories they should be writable and executable by the user your webbserver runs as, or chmod a+w
@jordanc: I've changed the path to single quotes. Since I don't have shell access, I cannot chmod a+w the directories. I've tried to change the permissions in the hosts cpanel. Is 0775 enough?
I've temporarily opened the installation for cyons support. They are able to upload and show .gif and .jpeg files: http://status.davidhaberthuer.ch/drdol
@habi Try specifying the mime types you need Add this to your config.php $config['attachments']['supported'] = array('image/png', 'application/ogg', 'image/jpg', 'image/jpeg', 'text/plain'); You can add in any other mimetypes in single quotes separated by a comma http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types
@jordanc The cyon support solved the problem: With their own account on my installation they were able to pinpoint the problem to an old version of the magic.mime-File that came with the Server-OS. They put a new file online and now uploads of all Image-Files work nicely.
Now I've only got the problem with the avatars (and restore from my backup of my account on identi.ca). - Avatar-Directory chmodded 0777 now, but I still don't get the avatars... - When I upload my backup from identi.ca to status.davidhaberthuer.ch i get an error "Not an Atom Feed": http://cl.ly/5FRY
@jordanc I have troubles with remote StatusNet-Avatars and didn't even try with Twitter... I can federate across installations, does that not mean queues and daemons work? And would a cron-job work? I can let those run (I already do it for a Friendika-Installation on my server)
Comments
You should also check the permissions on your /avatar and /file directories they should be writable and executable by the user your webbserver runs as, or chmod a+w
Add this to your config.php
$config['attachments']['supported'] = array('image/png', 'application/ogg', 'image/jpg', 'image/jpeg', 'text/plain');
You can add in any other mimetypes in single quotes separated by a comma
http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types
Now I've only got the problem with the avatars (and restore from my backup of my account on identi.ca).
- Avatar-Directory chmodded 0777 now, but I still don't get the avatars...
- When I upload my backup from identi.ca to status.davidhaberthuer.ch i get an error "Not an Atom Feed": http://cl.ly/5FRY
http://gitorious.org/statusnet/mainline/blobs/master/README#line508
It probably won't work on shared hosting unless you ask your host very nicely ;-)