Uploading files to Google Cloud Storage #566

Open
opened 2017-01-12 14:07:36 +00:00 by daslicht · 2 comments
daslicht commented 2017-01-12 14:07:36 +00:00 (Migrated from github.com)

Hi,
is there a way to upload files to google cloud storage using ng2-upload?
please?

~ Marc

Hi, is there a way to upload files to ```google cloud storage``` using ng2-upload? please? ~ Marc
MrTerrorbyte commented 2017-01-30 05:42:30 +00:00 (Migrated from github.com)

In ng2-file-upload/file-item.class.js, I had to change the POST request to a PUT request. For some reason google storage doesn't like POST I think..

For Uploader options, I also used disableMultiPart: true.

Then I used the google api to make a signed_url and used ng2-file-upload's upload() on this url.

In ng2-file-upload/file-item.class.js, I had to change the POST request to a PUT request. For some reason google storage doesn't like POST I think.. For Uploader options, I also used disableMultiPart: true. Then I used the google api to make a signed_url and used ng2-file-upload's upload() on this url.
adrianfaciu commented 2017-10-02 15:36:56 +00:00 (Migrated from github.com)

@MrTerrorbyte if interested you can add a PR with your changes so and we can look at merging this into the package.

@MrTerrorbyte if interested you can add a PR with your changes so and we can look at merging this into the package.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#566