Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

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

  • 8 відповідей
  • 1 має цю проблему
  • 36 переглядів
  • Остання відповідь від Olof Jondelius

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

Корисно?

Запитати

Щоб відповідати на повідомлення, ви повинні ввійти у свій обліковий запис. Поставте нове питання, якщо ви ще не маєте облікового запису.