Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload fails on Struts app #33

Open
gregh3269 opened this issue Mar 21, 2013 · 0 comments
Open

Upload fails on Struts app #33

gregh3269 opened this issue Mar 21, 2013 · 0 comments

Comments

@gregh3269
Copy link

Hello,

The lines of code need modifying below for it to work:

if (this._options.encoding == 'multipart') {
var formData = new FormData();
/* formData.append(name, file); */ <<<< Removed
formData.append(this._options.inputName, file); <<< Added
file = formData;
} else {
....
}

Also need to add encoding: 'multipart' to the qq.FileUploader page options.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant