Skip Navigation

[Closed] 'You can only upload an image file" when submitting a form

This support ticket is created 3 years, 6 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.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 3 years, 6 months ago.

Author
Posts
#2047033
screencapture-conference-livemeeting-ca-wp-admin-post-php-2021-05-06-21_54_46.png

Tell us what you are trying to do?

I have a form to edit my profile and when the field is blank I get an error saying you can only upload an image file. This is not a required field and I'm not sure what's happening.

Is there any documentation that you are following?

I looked at...
https://toolset.com/forums/topic/cred-form-image-validation/
https://toolset.com/forums/topic/forms-validation-issues/
https://toolset.com/forums/topic/cannot-submit-cred-form-with-file-or-image-field/

the last one had some CSS that might have been an issue so I commented out my styling.

Is there a similar example that we can see?

What is the link to your site?

hidden link

You can use the login:
User: demo
Password: demo

I've included a screenshot of the form.

#2047229

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Michael

This is a known issue and the fix will be included in the next batch of updates, hopefully next week:

https://toolset.com/errata/validation-error-if-image-field-is-blank-when-not-using-wp-media-uploader/

The topic ‘[Closed] 'You can only upload an image file" when submitting a form’ is closed to new replies.