Allow setting of fileupload options through s3uploader #126
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a fairly simple change to address #125. I created a new settings option called fileupload_options which defaults to null. By passing any valid option from https://github.com/blueimp/jQuery-File-Upload/wiki/Options you can set the option directly in the fileupload plugin.
I simply moved all of the fileupload function overrides to an api object and them extended them with the new settings option. I intentionally made it so that someone could override even the s3uploader default API in case they wanted to extend it.
Let me know if you have any questions.