to pull an external file into hubspot files. This appears to work. However when the overwrite option is set to true, it doesn't overwrite, just end up with a folder with test test-1 test-2 test-3 test-4
Then for some reason, consistently after -4 it changes to test-datetime stamp test-Dec-06-2021-02-39-17-81-AM
Just running the below (where XXX = api key, file url, folderid)
The first time, it works fine. MY_FILENAME.json file is put in the folder, no problem. The second time I run it, Instead of overwriting the file, a new file is added to the folder with an extra .json extension added (e.g.MY_FILENAME.json.json). Any subsequent API calls will overwrite the MY_FILENAME.json.json file, but leaves the original MY_FILENAME.json file unchanged. Any help?
It looks that the parameter overwrite is not accepted or ignored by the async API.
I found the following information
Overwrite:
If true this file with replace any existing files with the name name, folder, and type.
Note: If this is set to false, and the uploaded file matches the filename of an existing file in the same folder, the file will be uploaded with a number incremented filename (e.g. example_file.txt will become example_file-1.txt)