What I am trying to accomplish is the following. I want to be able to send a file path (such as "~/MyFolder/MySubFolder") through Ajax to a MVC 4 controller. The problem I'm facing is that, I'm using the fileupload jquery plugin and this does not give me direct control over what I send over to the server (meaning, it sends the file with a couple of attributes but I can't add extra attributes to it).
I was trying to send the path as an html attribute to the ajax call:
url: "/api/upload" + path
but for obvious reasons this doesn't work. Any help would be appreciated! Thank you