Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Learn More

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

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

  • 1 antwoord
  • 14 hebben dit probleem
  • 25 weergaven
  • Laatste antwoord van 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

Alle antwoorden (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