Mac Safari problem with file - extensions after download.
Submitted by osirisd on Sun, 10/28/2007 - 15:01.
Hi there!
I have a little problem concerning projectpier and Mac Safari. If anyone of my mac-users downloads a file from my projectpier installation the last character of file-extension is missing. i.e. ".doc" becomes ".do". There is no problem using firefox on the mac.
thanks for help!
greetings.
alex.

I can't reproduce that on my Mac. The file ending is fine, but there is an extra quote character in the beginning of the file name (ie. "filename.pdf)
Hello,
you can have a look at this issue
Hi
I've just installed Project Pier for the first time on a dev server. It looks great, except for this file renaming issue - I've looked at the linked thread also.
I'd like to use PP to manage design projects in our studio. Unfortunately renaming files once they're downloaded will not be a practical option, especially when clients are involved.
Does anyone know the cause of this bug? It would be the first step to working a solution.
Cheers!
Hi,
Sorry to hear its not quite working, I can't seem to reproduce this problem. Can you try getting a fresh copy of the files, doing a clean install and possibly trying a different server (maybe just mamp) to see if you can get reproduce the issue? Once we can narrow down the exact steps needed to replicate the problem we can track down a fix. You can also see http://www.projectpier.org/bug-reports for hints on what to write down to help the developers.
Hi Ryan
Thanks for response, I have done everything you suggested - completely clean install on MAMP (made sure it's running PHP5 not 4). The problem is still there. I'm running Safari 3.0.4 on OS X 10.4.11.
Uploaded a file "deli-technique-fr.psd" to PP, the filename is complete when viewed in PP. Download the file and the extention becomes .ps
A bug report has already been filed for this, one of the dev team has posted a summary of file name bugs:
Here’s a little walk around different Browsers & OS.
Mac OSX :
- Firefox : OK.
- Opera : the file is downloaded but with “index” in place of the real name, the extention is OK, the “content” is OK.
- Safari, iCab, Shiira, SunriseBrowser, OmniWeb : the file have an altered title (drop.gif >> drop.gi.gif , maquet.zip >> maquet.zi.zip , style.css >> style.cs).
- Camino : the name is altered (drop.gif >> drop-1.gif).
Linux ZenWalk, OpenSuse, Ubuntu :
- Firefox, Galeon, Konqueror, Epiphany : OK
- Opera: “index” in place of the real name
XP :
- Firefox, IE : OK
- Opera: “index” in place of the real name
As I understand it the error is in the file: "environment/functions/files.php", line 381.
The line should read:
header("Content-Disposition: $disposition; filename=\"" . $name . "\"");
There was a misplaced paranthesis. When I fixed this, the problem disappeared.
I hope this is helpful for others. Should I report this anywhere?
--
Sveinung Gundersen
Please create a bug report and reference this thread and your fix. You should also do a quick search on existing issues to see if has already been reported.
thanks!
I've been meaning to find that bug!