Skip to content

Commit

Permalink
fix: create session
Browse files Browse the repository at this point in the history
fixes issue #9
  • Loading branch information
kukhariev committed Feb 18, 2019
1 parent 7d76e5c commit 725263b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uploadx/src/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class Uploader implements UploaderOptions {

create(item: UploadItem = {}) {
return new Promise((resolve, reject) => {
if (this.status === 'added' || this.status === 'error') {
if (!this.URI || this.status === 'error') {
// configure
const { metadata, headers } = item;
this.metadata = {
Expand Down

0 comments on commit 725263b

Please sign in to comment.