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!

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

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

  • 1 risposta
  • 14 hanno questo problema
  • 25 visualizzazioni
  • Ultima risposta di 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

Tutte le risposte (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