Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload #36

Open
blu3bl00d opened this issue Sep 18, 2013 · 2 comments
Open

Upload #36

blu3bl00d opened this issue Sep 18, 2013 · 2 comments

Comments

@blu3bl00d
Copy link

Hi,

Can I upload the recorded audio to a filesystem. I'm thinking of passing my "Controller" URL. Is that possible? I'm using MVC C#..

@Anonym-tsk
Copy link

You can send file to server with HTTP POST request.

@blu3bl00d
Copy link
Author

Thanks for reply @Anonym-tsk ...

I'm a newbie programmer so kindly assist me.
Here's my upload function..
Recorder.upload({
method: "POST",
url: "/MyController/UploadAudio",
audioParam: "track[asset_data]",
parameter: {
"track[title]": "AudioTitle",
//"oauth_token": ""
"track[description]": "AudioDescription"
},
success: function(responseText){
alert(responseText);
},
error: function(){
alert("error");
},
progress: NULL
});

Here's my controller..
[HttpPost]
public ActionResult UploadAudio()
{
//upload audio
}

Kindly assist me if this is possible. What parameter should I put in my Controller method and is my function for upload is correct?

Many thanks,
Christian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants