I tried uploading various file types when creating a new post and all those were accepted, I need to validate uploads and restrict only for photos. How can I do that ?
actually Ossn doesn't upload anything else than images inside of a post.
You just stumbled upon a small logic glitch
as basically a post with just an image IS possible
while an empty post is not.
If somebody can help me on this would be appreciated. What I want to do is.
Thanks in advance
Please see below. When I select zip file it uploads without any error. But when it's posted its becomes an empty post.
How can I restrict this only to post photos with exif data.
I need to accept only photos with exif data and reject other types of files by throwing an error.
Please help me to customize the code to archive this target