JQuery file upload plugin: dynamically change upload path?
I am trying to use the blueimp JQuery File Upload plugin for a project I am currently working on. It suits my needs perfectly, with one problem: I need to change the download path based on the GET variable on the page containing the plugin. Basically, I use it as an image manager for a collection of vehicles, and I want it to connect to a separate folder for each vehicle.
I was looking through the documentation and googling and I found a way to change the default directory (by changing upload.class.php), but since I need it to be dynamic, this doesn't work.
I suppose there must be a way to add a POST variable to the ajax calls that activate the php scripts, but I can't even find out where those ajax calls are. I can't even find a link to any of the php files (index.php and upload.class.php) in the whole code.
Any ideas on how to do this?
source to share