my $gd = Net::Google::Drive::Simple->new( oauth => $oauth );
my $file = 'hello.txt';
my $parent = 'root';
my $file_id = $gd->file_upload( $file, $parent ) or die "Upload failed: $!";
The upload does not report any errors, but when I check the uploaded file from the Google Drive web interface in my browser, I can see that the content of the file is either missing or contains Content of Content-Type which is not what was in the file.
I am trying to upload a simple text file:
The upload does not report any errors, but when I check the uploaded file from the Google Drive web interface in my browser, I can see that the content of the file is either missing or contains
Content
ofContent-Type
which is not what was in the file.