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

Use file object passed by Promise's resolve after beforeUpload #41

Merged
merged 1 commit into from
Jun 14, 2016

Conversation

superRaytin
Copy link
Contributor

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 43.229% when pulling 9fe82a6 on fix-promise-file into 9ea66cb on master.

before.then(() => {
this.post(file);
before.then((processedFile) => {
if (Object.prototype.toString.call(processedFile) === '[object File]') {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

确保 resolve 传递过来的是 File 对象

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请问多选的时候 这里能不能改成传一个File[]来上传多个文件?

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

Successfully merging this pull request may close these issues.

4 participants