Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Bcwald CreditAttribution: Bcwald commentedI also have this issue on 7.x-dev.
Comment #2
Bcwald CreditAttribution: Bcwald commentedComment #3
hunziker CreditAttribution: hunziker commentedYou need to change the name of the view.
Comment #4
davesommerhalder CreditAttribution: davesommerhalder commentedthank you! now it works.
Comment #5
splash112 CreditAttribution: splash112 commentedHi Dave,
Have the same issue here on 6.x. What exactly did you change to get the .pdf?
Thanks
Mark
Comment #6
davesommerhalder CreditAttribution: davesommerhalder commentedThe 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.
Comment #7
splash112 CreditAttribution: splash112 commentedHi Dave,
Thanks!
Sadly, I couldn't get it to work... Did you use an argument in your view?
Thx
Mark
Comment #8
hunziker CreditAttribution: hunziker commentedIs there any interest in changing the behavior? So ".pdf" is added in any case, independent on the name?
Comment #9
splash112 CreditAttribution: splash112 commentedThink 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
Comment #10
hunziker CreditAttribution: hunziker commentedLast commit contains the bug fix for 6.x and 7.x. Important you need the dev versions. The get build tonight.
Comment #11
splash112 CreditAttribution: splash112 commentedChecked the dev version, but no apperent changes for 6.x
What changed?
Thanks
Mark
Comment #12
windm CreditAttribution: windm commentedHi 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
Comment #13
ConradFlashback CreditAttribution: ConradFlashback commentedThis is a very big problem of usability not solved for me.
Any news?
Comment #14
ConradFlashback CreditAttribution: ConradFlashback commentedComment #15
vegansupreme CreditAttribution: vegansupreme commentedNeed more information. This was fixed in 2011. How are you getting a PDF with no extension?
Comment #16
hfarrier CreditAttribution: hfarrier commentedWe 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.
Comment #17
killua99 CreditAttribution: killua99 commented