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

도움이 되셨습니까?

질문하기

글에 답글을 달기 위해서는 계정으로 로그인해야만 합니다. 계정이 아직 없다면 새로운 질문을 올려주세요.