Open barefootcoder opened 12 years ago
Will you tell me how to reproduce? It worked fine from my box.
Hmmm ... it's very consistent for me. Both .doc and .docx files fail in my script, but work file when I upload them manually. I was wondering if maybe I wasn't setting some conversion flag or something ... can you send me a test .doc file and a script and let me try to upload those? I'll also try my test uploads again, just in case it was a transient error on Google's side.
Thanx for looking into it.
added test and docs.
8baeebf7310dc239e7f3b991e8f9887b6278fa59
you can run the test with (the test requires some CPAN modules and configurations)
NET_GOOGLE_DOCUMENTSLIST_LIVE_TEST=1 prove -lv t/06_upload.t
Okay, I'm using code like so:
where obviously
$self->_doclist
is aNet::Google::DocumentsList
. Very simple. Now, if$file
is a text document, or a PDF, this works fine. But if it's a Word doc, it fails. Here's the error I get:If I try to upload the same file(s) manually, it works. Am I doing something wrong here?