I am searching for a solution to upload files from my root server directly to my Google Drive-account via PHP.
Authorisation is working fine, but when I try to transfer a file (for example "test.jpg"), it just creates a file named "Untitled" in Google Drive. It also ignores the folder where to save it in and creates it in the main-folder.
If I use the same save-function, with the same parameters, but just leave the file-content empty everything works fine. The file gets created with the correct filename in the correct subfolder - everything I want - but without the filedata.
Is it perhaps a configuration-problem?
I am using the following code (see the php-example at the bottom) for transfering the files: https://developers.google.com/drive/v2/reference/files/update
Many thanks for your answers!!