Skip Navigation

[Resolved] Not valid url in image uploader

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that when the user uploads an image into our image field and the filename has a space in it. The field throws a url not valid error.

Solution:

The problem is being caused by the space in the filename. What I recommend that you do is to remove the space from the filename and re-upload the image.

This support ticket is created 5 years, 5 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by thomasK-8 5 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1329565
Skjermbilde 2019-09-02 kl. 17.58.17.png

I am trying to: Use custom field (Toolset) to upload image to custom post type. The upload goes fine, but when try to save I cant and gett error messege: "Please enter a valid URL address pointing to the image file."
How to fix? Can I turn of validation of url somewhere? Is it because the domain is a .tech domain?

#1329591
#1329593

Shane
Supporter

Languages: English (English )

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

Hi Thomas,

I checked on this one for you. However I'm not able to replicate the issue.

I was able to replace the images in these fields without encountering any errors at all.

Thanks,
Shane

#1329627

I see now that the images that cause problem have a custom path. Like this:
hidden link Sivertsen_rosa_086.png

To replicate: Go to : hidden link

In the custom field: Tegning Duofarget blue

Try insert this image from media library : 181102_FIN.TECH_Atle Sivertsen_rosa_086

So question is: Is it possible to disable path validation?

#1329679

Shane
Supporter

Languages: English (English )

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

Hi THomas,

I see the issue now. Its because of the space in the filename "181102_FIN.TECH_Atle Sivertsen_rosa_086".

Removing this will resolve the issue. The reason why this still would work if you navigate to it directly from the URL is because the browser will fill in that empty space with special characters but on the backend this doesn't happen.

I would suggest remove the spaces from the filenames.

Thanks,
Shane

#1329829

My issue is resolved now. Thank you!