01-10-2020 12:36 AM
Hello everyone,
I try to use google drive api to upload some files.
When use source code to run it will upload sucessfully
But when build it can not work ,why?
This is source vi: https://www.dropbox.com/sh/ffha6rru3lbx6uh/AABB2uLef1GVV432nU7a8_ZXa?dl=0
01-10-2020 01:34 AM
Hi,
With small builds Google Drive works fine, but when you have larger builds or when building an installer you might encounter problems.
Google Drive is constantly scanning your shared folders. During build these folders are changed. Adding temporarily folders and files and delete them again. Google Drive scans a folder list a folder(s) and/or file(s) and uses that list to sync. In the mean time your build proces is deleting these folders and files. Google Drive will report an error and tries to solve this.
I sometimes set Google Drive in pause when performing these kind of actions. But you have to remember to resume it afterwards.
Kees
01-12-2020 11:52 PM
Thanks KC replied,so what can I do?
01-13-2020 01:27 AM
I think you have two options:
-1- Store your project on the drive you sync with Google Drive and store the builds on your local disk. If you need them at your Google Drive you can you copy this afterwards.
-2- Pause GD before the build and resume it when the build is ready.
For option 1 you could also use the option 'execute VI after build' Create a VI that copies the files to GD after the builder is ready.
Kees
01-13-2020 12:49 PM
I think you are discussing different things:
(1) using the GD API so the LabVIEW program can interact with files in the cloud.
(2) building an application where the output is monitored by GD (See also )
01-15-2020 02:44 AM
Thanks KNIGHT OF NI replied,
So Is this problem that happened at typetomime.txt this file?
01-15-2020 02:44 PM
Please attach your VI directly. I don't download from external links.
Are you sure all dependencies are present on the other system and found by the built application?
01-19-2020 06:57 PM
I had attached files as zip, Maybe you can check where is that problem
01-19-2020 08:49 PM
That is not a zip file. That is a rar file which most people don't have the software tools to open.
Attach a REAL zip file so everyone can open it.
01-21-2020 02:27 AM
Oh, Sorry , I update again