0

The endpoint I'm uploading a file to requires a query parameter: ?name=foo.txt. However, when using the fileupload plugin for jQuery, it strips any parameters out of the url when I set it like this:

$('#file-input').fileupload({url: '/upload?name=foo.txt'});

When I check the value of url it returns /upload. I can't find anywhere in the documentation that allows you to set query parameters. Any help would be greatly appreciated!

4

1 回答 1

0

事实证明,实际上可以做到这一点。我在代码的其他地方遇到了问题。

于 2013-12-01T05:40:35.793 回答