How do i reference folder names with spaces in them?

Hi. Im using the Download Image blueprint node and whenever the image path has a folder with a space in the name, it fails getting the image. I’ve understand theres something about space on directories and programming so i tried googling and tried everything: adding quotation marks, the backslash to escape character, etc. nothing works. Please help I also can’t find anything in the documentation about this.

I’m thinking there’s a solution because what if there are games that want to the player to upload someting from his pc or device? Surely someone has made a way around this right?

Thanks very much.

Have a look at my tutorial about this subject: Import Images During Runtime | Community tutorial. It should answer your questions.

Edit 1: Give me a second to see if it can accept spaces from my PC.

Edit 2: You are incorrect, it does work with spaces in the name. I even have a mix of back and forward slashes:
bild

I suggest you watch the tutorial as it will showcase how you properly can set it up.

Thanks for the reply. I actually learned how to do this through your tutorial. that is so weird. It still doesn’t work on me. but when i remove the spaces and rename the folder where the image is at to contain no spaces, it successfully imports. I can’t replicate how you did that. Am I missing a plugin or something? What version are you using? I’m using 5.1.1.

This is me trying it in level blueprint still to no avail

image

image

however, when i remove the spaces in the folder name

image

image

please help. im stuck. surely theres a way. every pc has program_files folder there are spaces in there!

thank you

Use quotation marks when specifying long filenames or paths with spaces

doesn’t work either

Are you getting the wrong class from the Get All Widget Of Class, alternatively your texture parameter value is perhaps incorrect?

Also, try without the Event Tick, if it constantly gets the image it perhaps messes things up. It is getting the image asynchronously which means that getting it over and over can cause issues, especially from a Tick that runs every frame.

Change it to be all forward slashes as well and try all backwards slashes. Try a different drive as well.