I've made a CRED "Edit existing content" Post Form called "Klanteninterface: winkel (bewerken)" so our partners can edit their own profile. In that form, there's a custom field named "main-photo" (field type = "image'). Here's the code to show the input field inside the "Edit existing content' Post Form:
When I submit the form and there's already an image selected, I keep getting the following error:
"You can only upload an image file"
It looks like the image input field has a invalid value even if I didn't/couldn't select another image.
Here's a screencast video to show my case: hidden link
Do you have any idea what could trigger this strange behavior?
I've had this experience since I've put the CRED Post Form in the content template/page (a couple of days ago). I'll try to deactivate all other plugins and keep you posted if the behavior changes.
I deactivated all the plugins in the website. By reactivating them one by one, it seems that there's a conflict with the WPForms plugin. When I disable WPForms, it works. Any idea how I can fix this? I still need both plugins on the website 🙂
- Make sure WPForms is enabled (I've done that for now)
- Edit the shop again, your test image is shown
- Save the form without changes
- You get the error "hidden link" <== PROBLEM
- Disable WPForms
- Refresh the page with the CRED form again (one or 2 times)
- Save the form again
- Now notice the form is submitted correctly <== 'FIX' (BUT NOW WPFORMS IS DISABLED AND I NEED IT)
Hello, Shane is out on holiday this week and I've been asked to look into his open tickets. I hope that's okay. I tested this problem on your site and even with WPForms enabled, I'm not able to see the error "You can only upload an image file". I have edited the Shop 2 test post multiple times, and never seen the error message. Did something change in the site that I should be aware of? Can you consistently replicate the problem?
Hi Christian, thanks for looking into this ticket. Recently, I saw the issue was solved and I was waiting for Shane to explain what he fixed. But it seems the problem got a solution without a fix done by one of us 🙂 Glad it's working now 😉