1

In joomla or core php when we upload any file it validate only extension on file.

Issue is that when i am changed the extension of an .exe file to pdf/jpg it gets uploaded. And validation failed. Can any one tell me how i can put validation for this condition in php or Joomla.

Thanks in advance.

1

If you turn on the "Restrict Uploads" setting in the Options of the Media component, then Joomla will try to check for the real file type. However, please note that the check will fail if you don't have PECL library or the MIME Magic library installed. See this post about this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.