Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Upload Problem on Front End #1617

Closed
kelfy opened this issue Aug 16, 2013 · 3 comments
Closed

File Upload Problem on Front End #1617

kelfy opened this issue Aug 16, 2013 · 3 comments
Assignees
Milestone

Comments

@kelfy
Copy link

kelfy commented Aug 16, 2013

Hi,

I created a file upload field which allow visitors to upload multiple images. I've ticked 'Restrict access by Capability?' and set 'Capability Allowed: Read'. Which means I want all my visitors to be able to upload file.

However, when I display the form with the code below. It just shows the field label and save button but the input field are not showing up.

form('files'); ?>

If I uncheck 'Restrict access by capability'. It shows 'You do not have access to upload / browse files. Contact your website admin to resolve.'.

Is this a issue with the plugin or my setting is incorrect? Please help.

Thanks

@ghost ghost assigned pglewis Aug 16, 2013
@sc0ttkclark
Copy link
Member

When you see the 'you do not have access' message, are you logged in at the time? Does that user have many capabilities or just 'read'?

@kelfy
Copy link
Author

kelfy commented Aug 18, 2013

No I am not logged on.

@sc0ttkclark
Copy link
Member

By default, Pods does not allow people who are logged out to access file uploading.

If you would like to override this option, be very very careful, but you can do it with this constant in your wp-config.php:

define( 'PODS_UPLOAD_REQUIRE_LOGIN', false );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants