MyBB Community Forums

Full Version: .php problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When people click on a video attachment, they will see the save window open in firefox with a name that firefox gives as "attachment.php"...why does firefox do that? This won't work unless people rename it to attachment.wmv, and not everyone will guess that...

Thanks,
GSA
bump!

GSA
What are the actual file names of the file?
Looking through attachment.php, I notice that there's a Content-disposition header whenever an actual file is output which specifies a filename. I would change the first occurance (+/- line 96)

replace:
header("Content-disposition: filename=$attachment[filename]");
with:
header("Content-disposition: inline; filename=$attachment[filename]");

Let us know if this makes a difference.