Skip to content

Instantly share code, notes, and snippets.

@SeanJA
Created January 13, 2011 03:40
Show Gist options
  • Save SeanJA/777345 to your computer and use it in GitHub Desktop.
Save SeanJA/777345 to your computer and use it in GitHub Desktop.
valums file uploader code igniter patch
# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- fileuploader.js
+++ fileuploader.js
@@ -1195,7 +1195,9 @@
// build query string
params = params || {};
params['qqfile'] = name;
- var queryString = qq.obj2url(params, this._options.action);
\ No newline at end of file
+ //codeigniter fix
+ //var queryString = qq.obj2url(params, this._options.action)
+ var queryString = this._options.action + '/' + params['qqfile'];
\ No newline at end of file
xhr.open("POST", queryString, true);
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment