mschilli / net-google-drive-simple

Net::Google::Drive::Simple CPAN Module
Other
11 stars 22 forks source link

File upload does not work correctly #47

Closed hakonhagland closed 2 years ago

hakonhagland commented 3 years ago

I am trying to upload a simple text file:

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.

hakonhagland commented 3 years ago

Added a possible fix, see PR #48.

atoomic commented 2 years ago

thanks this is now fixed