Space issue in filename when using mediaclip.cgi #690
-
I'm using the following curl and having issues with spaces in the name place. I've used Alarm Tone, Alarm%20Tone, Alarm%%20Tone, Alarm^%20Tone, but I can't get it to upload with a space between Alarm Tone. curl --digest -u root:pass --insecure --location --request POST "http:///axis-cgi/mediaclip.cgi?action=upload&media=audio&name=Alarm Tone" --form File=@"C:/AudioFiles/Alarm Tone.wav" Any suggestions would be greatly appreciated..... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
Hi @JasonTonGit , curl -u root:pass --digest --noproxy "*" -XPOST 'http://195.60.68.14/axis-cgi/mediaclip.cgi?action=upload&media=audio&name=Alarm%20Tone' --header 'Content-Type: multipart/form-data' --form 'Content-Type=@Alarm Tone.mp3' |
Beta Was this translation helpful? Give feedback.
Hi @JasonTonGit ,
I agree with you that handling spaces with Windows CMD is difficult. I suggest you use WSL on Windows 😄
#cURL(using WSL):