Skip to content

Commit

Permalink
fix(bug): modify upload one file
Browse files Browse the repository at this point in the history
  • Loading branch information
zack9433 committed Oct 20, 2016
1 parent 00a7a9b commit 6d77138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/component/restful.provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class RestProvider {
url: base + uri,
method: 'POST',
data: {
files: files
file: files[0]
}
};
if (data) {
Expand All @@ -49,7 +49,7 @@ class RestProvider {
url: base + uri,
method: 'PUT',
data: {
files: files
file: files[0]
}
};
if (data) {
Expand Down

0 comments on commit 6d77138

Please sign in to comment.