i don't get a file extension, so the filename is "card" instead of "cards.pdf". can i change this? thanks for your help!

Comments

Bcwald’s picture

I also have this issue on 7.x-dev.

Bcwald’s picture

Assigned: davesommerhalder » Unassigned
hunziker’s picture

You need to change the name of the view.

davesommerhalder’s picture

Status: Active » Closed (fixed)

thank you! now it works.

splash112’s picture

Hi Dave,
Have the same issue here on 6.x. What exactly did you change to get the .pdf?

Thanks
Mark

davesommerhalder’s picture

The name of the view you're using has to be "xy.pdf" (not the name of the display). Because you can't use a "." in a view's name, you have to edit this manually in your database.

splash112’s picture

Hi Dave,

Thanks!
Sadly, I couldn't get it to work... Did you use an argument in your view?

Thx
Mark

hunziker’s picture

Status: Closed (fixed) » Active

Is there any interest in changing the behavior? So ".pdf" is added in any case, independent on the name?

splash112’s picture

Think that would be great.
Hoped to have my Ubercart "invoice" sending with mime-mail, but wondering what my customers would think when they receive something like "67" as filename...

Thanks
Mark

hunziker’s picture

Status: Active » Closed (fixed)

Last commit contains the bug fix for 6.x and 7.x. Important you need the dev versions. The get build tonight.

splash112’s picture

Checked the dev version, but no apperent changes for 6.x

What changed?

Thanks
Mark

windm’s picture

Issue summary: View changes

Hi there,

although this is a closed issue and nearly three years old...:

Is it still the recommended solution to change the view-name directly in the DB??
Obviously the view-name is used for the generated file, which is downloaded by the browser, but is there no other way to get this simple ".pdf" added to the filename?

Most of the browsers I tested, fortunately open the pdf anyhow, but if the browser is set to "download only" the pdfs without opening them directly, the user will find an unknown fileformat in his download folder, and is asked how this should be opened... which could scare some users...

Any idea or news on this?

Mirko

ConradFlashback’s picture

This is a very big problem of usability not solved for me.
Any news?

ConradFlashback’s picture

Version: 6.x-1.0-rc1 » 7.x-2.x-dev
Status: Closed (fixed) » Active
vegansupreme’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Need more information. This was fixed in 2011. How are you getting a PDF with no extension?

hfarrier’s picture

We just discovered the same issue. Comment #12 explains the steps to replicate. PDFs are generated and viewed successfully as long as the file opens in the browser via acrobat/reader. If the user's browser is set to save/download the file, the file never gets the proper file extension.

killua99’s picture

Version: 7.x-1.x-dev » 3.x-dev
Status: Postponed (maintainer needs more info) » Active