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

"typeupload" doesn't have effect when "Automatic upload on select" is enabled #19

Open
jperals opened this issue Nov 21, 2012 · 1 comment

Comments

@jperals
Copy link
Contributor

jperals commented Nov 21, 2012

From the back end I'm forcing a file type like this:

self.request['SESSION']['typeupload'] = 'RichFile'

So that when I upload a file, it is sent as RichFile, which is a custom type made for our project.

This works except when the option "Automatic upload on select" is enabled. Then, QuickUpload guesses the file type by itself instead of relying on typeupload.

Probably the file to look into is fileuploader.js. I worked around this problem by overriding the method qq.FileUploader.prototype._addFile defined in this file, replacing the line

this._queueUpload(id, this._options.params);

to

jQuery('#uploadify-upload').click();

which works for me but may not be a very clean solution.

@tdesvenain
Copy link
Member

does this work when you drag and drop several files ?

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

2 participants