Hi @rahul-jain
I believe this is a capability issue. For front-end user input we always suggest to use plugins that are built for such a purpose like Gravity Forms.
Pods utilizes WordPress core for file uploads through the media library and is thus bound to it’s rules for security.
Cheers, Jory
I do agree.
But previously it was working fine. All of a sudden it is not working for public view. As an admin, I can see the file upload option.
Hi @rahul-jain
But previously it was working fine.
Can you elaborate? When was it working fine? Before a WordPress update?
Cheers, Jory
Yes, probably before an update.
But I am not able to identify whether it was before WordPress version update or plugin update.
Hi @rahul-jain
You can temporarily downgrade to find out if it was working before.
Honestly, I can’t imagine it was since I believe this validation was always in place.
Cheers, Jory
Adding this line of code helped me in fixing the issue.
define( ‘PODS_UPLOAD_REQUIRE_LOGIN’, false );
Also, I wanted to know is there any option to notify admin using email whenever there is a pending post that needs to be approved?
Hi @rahul-jain
Wow, I’ve been working with Pods for years now, that shounds like something I should know. Sorry for that!
Such notifications would require an extra plugin like this one: https://wordpress.org/plugins/notification/
Cheers, Jory