Best answer

Uploading Microsoft Word document from GitLab to Google Drive when any commit happens

  • 10 January 2021
  • 6 replies
  • 124 views

Hello! I want to upload Microsoft Word document from GitLab to Google Drive when any commit happens. My Zap config is:

But when I run it i obtain some strange document (the content is wrong):

How to fix it?

icon

Best answer by Troy Tessalone 11 January 2021, 00:26

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

6 replies

Userlevel 7
Badge +14

Looks like you’re using the URL to the location of the file in GitLab rather than the link of the GitLab file.

The field is expecting a file object or a direct link to a publicly accessible file.

Looks like you’re using the URL to the location of the file in GitLab rather than the link of the GitLab file.

The field is expecting a file object or a direct link to a publicly accessible file.

Do you mean permanent link to file by it?

Userlevel 7
Badge +14

Yes, should be a permalink to the file, instead of a link to the GitLab page that displays the file along with other options.

So my permalink is https://gitlab.com/dvfu-university/system-analysis-methods-and-modeling/diploma/-/blob/75d7435fd40c49864f7be0f7f8300470502a99f7/Literature/Diploma%20-%20Static%20C%23%20code%20analyzer.docx but it doesn’t work. What I am missing?

Userlevel 7
Badge +14

That link goes to a GitLab page.

The link needs to be a direct link to the file.

There is a download link available, but that produces a .zip file.

 

Thanks! And I found out that I can simply replace blob with raw in initial url. :)