Hello,
I want to upload a .3GP audio file that I record on my phone. I am using the simple audio recorder code the record and save the sound file. Now I want to upload it to my web server. What content type do I use for this? I can only find video/3gp although it is only audio.
And to upload it should I use the network.upload example on the docs? Below is the example from the docs and I changed a couple lines to show for .3gp files. Any thoughts? Should this work now?
Thanks!!
local function networkListener( event ) if ( event.isError ) then print( "Network error!") elseif ( event.phase == "ended" ) then print ( "Upload complete!" ) end end network.upload( "http://127.0.0.1/restapi.php", "POST", networkListener, "soundfile.3gp", system.DocumentsDirectory, "video/3gp" )