Using the Dropbox API JavaScript Chooser, I am looking to retrieve the response data and pass it into my Controller.
Exploring Javascript Options for the Dropbox API
options = {
success: function (files) {
$.ajax({
url: '/FileTransfer/FileData',
type: "POST",
dataType: "json",
//data: JSON.stringify(files[0]),
data: files,
success: function (result) {}
});
},
cancel: function () {},
linkType: "preview",
multiselect: true
};
Action in the Controller
Currently, my controller action does not perform any tasks, but it is intended to store the retrieved data into a model once I can successfully pass the data into it, which seems to be my current challenge.
public JsonResult FileData(string model)
{
return Json(new { success = true });
}