class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I don't know if it helps, but I had to add 'application/octet' to get pdfs to work.
Strangely though, pdfs were uploaded fine when I first wrote the code (without any mime type checking), but now (several months on) it was broken. I may have switched to using a new version of class.upload or it may have been something has changed on the server....Reply
I used the simple upload to try to up some pdf files :
Error: Incorrect type of file
I used
That doesn't fix it !
Can you help me?
application/pdf should be working.
But you can try the following ones:
Tell me which one works for you.
Many thanks
Does it do the same with any PDF documents?
please have look at this thread on github:
https://github.com/joomlaworks/k2/issues/54
Strangely though, pdfs were uploaded fine when I first wrote the code (without any mime type checking), but now (several months on) it was broken. I may have switched to using a new version of class.upload or it may have been something has changed on the server....