Congratulations for this great code.
I only have two problems:
1. I uploaded a zip file successfully. Then I tried to upload an mp3 file and the browser redirected after a minute to a blank page (
http://www.akrovates.com/forums/local_links.php).
2. When I link an mp3, the code adds automatically a thumbnail...
The mimetype is right, and I searched for about an hour this thread.