I'm trying to run the following cURL/Android command:
-i -F uploadedfile=@/storage/emulated/0/Pictures/Corre y Se Va/IMG_20170719_223837_2031783171.jpg http://www.runonetworks.com/correyseva/upload_attachment.php?CODE=E49AC1D0
However, I'm getting this output:
curl: (26) couldn't open file "/storage/emulated/0/Pictures/Corre"
So It looks white spaces are causing trouble with my file path.
I've tried to replace white spaces with "/ " (Without quotes) Also tried to have the whole string inside quotes ("@/storage...")
I can't seem to find a way to escape the whitespace character.
Does anyone know how?
You,Should migrate path which incluide whitespace with '_' underscore in real path.then use underscored instead of white spaces.
I just had a look at the cURL man-page, found here: https://curl.haxx.se/docs/manpage.html#-F
Have you tried -i -F 'uploadedfile=@/storage/emulated/0/Pictures/Corre y Se Va/IMG_20170719_223837_2031783171.jpg' http://www.runonetworks.com/correyseva/upload_attachment.php?CODE=E49AC1D0
? I've just wrapped the -F value in single quotes.