cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

REST Google Drive API - File is created as untitled

malleswari1
New Contributor II

Hi Team,

I am trying to write a file into google drive using REST Post snap, while creating the file in google drive, filename is set to untitled, tried with other options as such as multipart file upload but unable to resolve the error.

Below is my Rest post configuration
image

image

Below is my REST OAuth2 Account config:
image

any help on this issue is very much appreciated.

Thanks,
Reddy

12 REPLIES 12

skodali
New Contributor III

Does any one have an idea how to get the desired file name?

malleswari1
New Contributor II

Hi , I am now able to post the data from SFTP to Google Drive API, but still working on the โ€˜untitledโ€™ file name issue. I will let you know if I am able to fix the issue.

Thanks,
REddy

tlikarish
Employee
Employee

I donโ€™t think the Rest POST snap can perform a POST with a multipart/related content-type, so you might try the resumable API end point and see if that would work. I havenโ€™t gotten OAuth to work on my Google Drive account, so havenโ€™t actually tried this, but might be worth looking at.

Itโ€™ll require you to make two requests. The first will create the file metadata, which you could set the fileโ€™s title in, which responds with a location to upload the file contents. Then the next request uploads the file to the location that was returned in the first request.

malleswari1
New Contributor II

Thanks for the update. I will try and let you know if I make any progress.