[Freeswitch-users] File upload - mod_curl

RaviRaj Mulasa rml at tollfreeforwarding.com
Fri Apr 27 04:01:30 MSD 2012


Please let me know how can I upload a file from fs_cli using curl or other http application of FreeSWITCH.

>From Linux command prompt

curl -F file=@/tmp/log/callcontrol.log

>From fs_cli

curl post file=%40%2Ftmp%2Flog%2Fcallcontrol.log
curl post -F file=%40%2Ftmp%2Fccv5%2Flog%2Fcallcontrol.log
curl post -F file=@/tmp/log/callcontrol.log<mailto:file=@/tmp/log/callcontrol.log>
curl post file=@/tmp/log/callcontrol.log<mailto:file=@/tmp/log/callcontrol.log>

All the above results in

<head><title>415 Unsupported Media Type</title></head>
<body bgcolor="white">
<center><h1>415 Unsupported Media Type</h1></center>

FreeSWITCH version
FreeSWITCH Version 1.1.beta1 (git-65c4f76 2012-04-25 17-58-41 +0000)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120427/2cba7542/attachment.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list