Skip Navigation

[Resolved] Media Upload Validation Error

This support ticket is created 6 years, 8 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by stephenA 6 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#626828

I am trying to create a CRED form where users can upload an image to be associated with their account. I have set up a custom user image field, but when uploading an image using a CRED form, I get the error "Please enter a valid URL address pointing to the image file."

I have tried:
- using a 'media' or 'file' field
- uploading via the wp-admin user page
- reinstalling Types

but have had no success. When uploading via the backend, the URL was inserted as 'wp-content/uploads/...', but I had success by manually changing it to 'www.playsteps.com.au/wp-content/uploads/...'

#626945

Nigel
Supporter

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

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

Hi Stephen

I tried to reproduce this on a local test site but could not.

We have a known issue when you have required image fields on a CRED edit form. I tested a form to register new users, but are you talking about an edit form? Is the image field required?

If your form registers new users and that is not the issue, and as I cannot then replicate it, I would suggest you first try a no-conflict test, which means disabling all non-Toolset plugins and trying again, and if needs be, switching to a default theme such as twentyseventeen and testing again. That would help isolate the problem if it arises from a conflict with 3rd-party code.

#627165

Thank you for your reply Nigel. I did some more investigating and fixed the issue without having to do a non-conflict test.

As it turns out, it had nothing to do with the plugin. I inserted the following line into my theme's functions.php file, so that the wordpress media library automatically provides absolute links, rather than relative ones.

update_option('upload_url_path', '<em><u>hidden link</u></em>');