I have a few download links on a web page that use this js function to make a form post that will return a FileResult
from the server:
function downloadFile() {
var $form = $('<form method="post"/>').attr('action', 'downloadFileUrl').appendTo('body');
$form.append("<input type='hidden' name='" + paramx + "' value='" + valx + "'/>");
...
$form.submit();
$form.remove();
}
and it works on desktop, on mobile browser apps,
except when you get to the page by clicking from the facebook mobile app (when there's no address bar),
instead of a POST
a GET
request is done.
anybody faced this problem before, is there a known solution ?