php - Uploading a PDF with CodeIgniter not working -


I am trying to upload a PDF to my website using the CodeIgniter framework. It's ok to upload a JPG or PNG, but it's not a PDF.

On my page I have two forms, but if I print the 'userfile' post from my controller, then I get the file name pdf.

This is my viewpoint code:

  

Comments

Popular posts from this blog

c# - Roxy file manager in MVC doesn't accept session path -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

java - Ajax call to jsp and jsp redirecting to further jsp -