I need to change the below code to pass a file to a django request.Files object. Currently I pass the file location to django and allow it to open the file, unfortunately due to new ridiculous set in stone network restrictions django will no longer have access to anything outside of it's server.
The parameters I'm passing come from a variety of html text inputs and a file select.
I'm keen to change very little but if there is no other way...
jQuery.get(importUrl,{"file":fileInputData,"dir":dirInputData,"year":thisSurvey,"import":thisImport,"startDate":startDate,"endDate":endDate},function(data)
{
jQuery.jGrowl(data,{sticky:true,header:"Import Result"});
});