Skip to content

Commit

Permalink
Revert "Multi-service direct uploads in Action Text attachment uploads"
Browse files Browse the repository at this point in the history
This reverts commit 0b69ad4.
  • Loading branch information
gmcgibbon committed Jan 28, 2022
1 parent e0714cb commit cb8c4d5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions actiontext/app/javascript/actiontext/attachment_upload.js
Expand Up @@ -4,7 +4,7 @@ export class AttachmentUpload {
constructor(attachment, element) {
this.attachment = attachment
this.element = element
this.directUpload = new DirectUpload(attachment.file, this.directUploadUrl, this.directUploadToken, this.attachmentName, this)
this.directUpload = new DirectUpload(attachment.file, this.directUploadUrl, this)
}

start() {
Expand Down Expand Up @@ -42,11 +42,4 @@ export class AttachmentUpload {
get blobUrlTemplate() {
return this.element.dataset.blobUrlTemplate
}

get directUploadToken() {
return this.element.getAttribute("data-direct-upload-token");
}
get attachmentName() {
return this.element.getAttribute("data-direct-upload-attachment-name");
}
}

0 comments on commit cb8c4d5

Please sign in to comment.