Hello,
I use the code from the sample app to record a 3GP file and I have it played back in the app after it is recorded. So I’m sure the file is good when recorded and saved on my phone. But then I upload the file to my computer and I believe it is not valid anymore at that point. But how can i tell except by trying to play it? Is there any way I can look at the file to tell? I just made a short sound coughing and then saved and uploaded it. It is attached in a zip file.
I am using the following to upload the file.
URL3 = "http://" .. storyboard.IP7 .. ":" .. storyboard.Port7 .. "/upload.htm" local File2 = "testfile.3gp" local multipart = MultipartFormData.new() multipart:addHeader("Customer-Header", "Custom Header Value") multipart:addFile("myfile", system.pathForFile( File2, system.DocumentsDirectory ), "audio/3gp", File2) local params = {} params.body = multipart:getBody() -- Must call getBody() first! params.headers = multipart:getHeaders() -- Headers not valid until getBody() is called. network.request( "http://xxx.xxx.xxx.xxx:8080/upload.htm", "POST", networkListener, params)
I am using code I downloaded from here to send it multipart because where I upload it to only accepts it this way. It may be here where I am having an issue. If you see anything wrong with the 3gp file let me know.
Thanks!
Warren