Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

for uploading PDF (in php) if (!=application/pdf) {"No PDF"} gives error when trying to upload PDF. Why?

  • 1 ответ
  • 14 имеют эту проблему
  • 25 просмотров
  • Последний ответ от pluys

more options

In a php upload file I have inserted:

if($_FILES['file']['type'] !="application/pdf"){ echo "Should be PDF";}

exit; Even when trying to upload a PDF file the error message comes: Should be PDF. Earlier this worked fine. Maybe a bug in an update? Regards, pluys

In a php upload file I have inserted: if($_FILES['file']['type'] !="application/pdf"){ echo "Should be PDF";} exit; Even when trying to upload a PDF file the error message comes: Should be PDF. Earlier this worked fine. Maybe a bug in an update? Regards, pluys

Все ответы (1)

more options

I think I found part of a solution now. It is not Firefox, it is some add-on or plug-in. I myself use a lot of add-ons. I asked someone who was new to Firefox to load up a PDF file. There was no problem! So now I'm going to check all my add-ons, hoping it is not Firebug. All the best, Pluys