I'm using a post form to create new content for a custom post type.
This is a real estate type site that I want unregistered users to be able to upload images to. Though I don't want them to have access to the WP media library to see or use other images.
The forms works fine as long as the user does't upload images - if they try too, the form does not submit properly and the new post does not appear. This is probably a simple access matter but I haven't found the problem in my settings.
The form is set to publish so if you want to test it, the post should appear right away.
Hello. Thank you for contacting the Toolset support.
As I understand - the basic issue is if you try to upload the image with your form, the image is not get uploaded - is that correct? If yes:
I need to review your form and for that I need access details and problem URL.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I would like to know the form should be access as guest user and you want guest user should be able to use the media uploader? or the issue is as a guest user when user try to upload image the form is not working?
The form should be visible and fully usable for anyone visiting the site - so not just registered users.
The form should allow anyone to upload images but only registered users with admin, editor etc. permissions to be able to see / browse the wp media library.
The issue is that forms completed by unregistered users who upload photos is that the form is not saved. If they don't include photos the form is saved.
There are no problems if you are a registered user.
I've created post form to create a new entry and added a custom repeating image field to it and also set this form to submit with AJAX.
I see my form just works fine but when I checked with your form it is stuck when I try to submit the form.
In order to minimize the cause of the issue and to ensure their ins no possible conflict with any plugin or theme:
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
Ye - I got the files and I've just able to download it. I will install the duplicator package on my install and get back to you with updates as soon as possible. Please hold on for further updates.
I checked using admin user and I can upload the image successfully using the Form.
Using what user role you see the issue? As a guest user you can not have access to media library. Can you please clarity what user role I should be loggedin and try to upload image and submit the form?
As per my first post - "This is a real estate type site that I want unregistered users to be able to upload images to. Though I don't want them to have access to the WP media library to see or use other images.
I want anyone who come to the site to be able to complete the details of the form and be able to upload images. That do not need to register.
As per my first post - "This is a real estate type site that I want unregistered users to be able to upload images to. Though I don't want them to have access to the WP media library to see or use other images.
===>
Well - if user is not registered or he is trying to submit form using Guest user - he/she will not have access to media library.
The following line is already added to our Doc:
Only logged-in users can use the native WordPress media manager. Visitors can upload their media files using basic HTML file inputs.
So, if you are loggedin as subscriber role or author role etc..etc.. then you will be able to use the media uploader to upload the image.
However - yesterday we publish new version of Toolset plugins for Types, Views, Forms etc..
*** Please make a FULL BACKUP of your database and website.***
Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/
I hope this is clear now how you upload work when you try to upload image as guest user.
Thanks for your reply. So i need to uncheck the "native WordPress media manager" option in order for this to work with un-registered users? (see screenshot)
Thanks.
Update - I just unchecked that box but it's still not working. Maybe another permissions setting elsewhere?
Ok - I see that your form is set to submit with AJAX with image and this is a known the issue.
you need to uncheck that checkbox setting "Submit this form without reloading the page (use AJAX)" and save your form and then try to submit the form with the image.