Skip Navigation

[Resolved] Image upload error when submitting CRED (edit) Post Form

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 10 replies, has 3 voices.

Last updated by roulartaM 5 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1383173
image-file-error.png

Hi there!

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:

[cred_field field='main-photo' force_type='field' class='form-control' output='bootstrap']

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?

#1383327

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

Could you let me know when you started experiencing this issue ?

Also if possible could temporarily disable all the non-toolset plugins and check the issue again to see if it still occurs?

Thanks,
Shane

#1383337

Hi Shane!

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.

#1384045

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 🙂

#1384269

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for the update.

Would you mind allowing me to have admin access to the site to have a further look on this for you ?

Also please let me know the page that i can test out the form.

Thanks,
Shane

#1386305

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi ,

I tried testing this out on your site, however i'm not seeing any difference with and without WPForms enabled?

The correct preview image is shown after I upload the image and then view the edit form again.

Could you perhaps explaining exactly what should happen ?

Thanks,
Shane

#1386655
upload-error.png

Hi Shane,

Here's the issue that I'm pointing at:

- 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)

Hope this make things clear? 😉

#1388821

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi,

Yes thanks for the clarity.

I'm able to understand the issue exactly now.

Would you mind allowing me to have a copy of your site for testing purposes locally here?

I can get this by installing the duplicator plugin to your site.

Please let me know.
Thanks,
Shane

#1388867

No problem at all! Duplicator is already installed on the site, so you can just activate and use it 🙂

#1391903

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?

#1392155

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 😉