Filenames of uploaded Files are converted to .txt

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.

Details:
- info.php: http://grobmotoriker.ch/info.php
- config.php: http://pastebin.com/Mqa0K8Tv
- The logfile should be saved (see config.php), but I don't see anything.

Weirdly enough, contacts tell me that they see the image, but I don't 0_o: http://status.davidhaberthuer.ch/conversation/46

Oh, and I also don't see the correct avatars of my contacts: http://status.davidhaberthuer.ch/subscriptions

Comments

  • @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
  • @habi 777 may be too permissive, I know some webservers will disable access to 777 things for security reasons.
  • @jordanc it didn't help anyway... i set it back to 0755.
  • @habi Whoops, I forgot, you need to be running the queues and daemons to actually pull in the twitter avatars.
    http://gitorious.org/statusnet/mainline/blobs/master/README#line508
    It probably won't work on shared hosting unless you ask your host very nicely ;-)
  • @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)
  • @habi I believe for PuSH enabled feeds (like statusnet) you do not need the queues/daemons.
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