搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Can't download .ai (adobe illustrator) files. They converts to PDF

more options

Hello,

I have a platform where architects can download digital content in the file formats of dwg (autocad) and ai (adobe illustrator). The site is old and has been working for many years.

Today I received an email from a user that had issues downloading the ai files. I went on to the site an investigated. I am also unable to download the ai files. The dwgs are working as expected.

The ai files are converted to pdf and open in the browser in some web preview. If I then download the file from there it is still, when downloaded to my machine, a pdf. This is not the behavior from before. This is a change in Firefox.

How, when, and why is this change implemented? It seems like a pretty radical change, to coerce one file format to another without any option to get the source file for the user.

Any help is appreciated.

Hello, I have a platform where architects can download digital content in the file formats of dwg (autocad) and ai (adobe illustrator). The site is old and has been working for many years. Today I received an email from a user that had issues downloading the ai files. I went on to the site an investigated. I am also unable to download the ai files. The dwgs are working as expected. The ai files are converted to pdf and open in the browser in some web preview. If I then download the file from there it is still, when downloaded to my machine, a pdf. This is not the behavior from before. This is a change in Firefox. How, when, and why is this change implemented? It seems like a pretty radical change, to coerce one file format to another without any option to get the source file for the user. Any help is appreciated.

所有回覆 (9)

more options

Did you try to rename the file and change the file extension to .ai to check if it still works that way ?

有幫助嗎?

more options

When I download the file it gets downloaded as pdf-format. I can then open that file in Adobe Illustrator either straight as a pdf or rename it to .ai, it works in both cases. The problem is that for my audience it is better for it to be .ai, which it is on the server. I can't fathom why Firefox changes it?

有幫助嗎?

more options

Can we walk through the steps?

有幫助嗎?

more options

Sure,

I have files that is of type .ai (Adobe Illustrator) on my server. My users can download them from my site. When one download them with chrome everything works fine; you get the downloaded file as .ai on your local machine. When you download through Firefox they get saved as .pdf instead.

You can try it at pimpmydrawing.com

由 Olof Jondelius 於 修改

有幫助嗎?

more options

Sure,

I have files that is of type .ai (Adobe Illustrator) on my server. My users can download them from my site. When one download them with chrome everything works fine; you get the downloaded file as .ai on your local machine. When you download through Firefox they get saved as .pdf instead.

You can try it at pimpmydrawing.com

有幫助嗎?

more options

I do see the issue. see screenshots

由 jonzn4SUSE 於 修改

有幫助嗎?

more options

The response header is telling Firefox to treat it as a PDF:

content-type: application/pdf


The filename may be corrected since three years ago (Bug 1667787).

If we've got a suggested filename, and a primary extension for the mimetype, and the extension on the file is not one of the known extensions for the mimetype, replace it with the primary extension.

有幫助嗎?

more options

@zeroknight Thank you, this must be it. But since .ai is not one of the known extensions I don't understand what I should send as content-type?

有幫助嗎?

more options

... I set it to `application/postscript` and now it worked! Thank all for your help.

Best regards! Olof

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題