Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

request error 400: No file found in upload request. gdata version 1.1.1 #10

Open
GoogleCodeExporter opened this issue Aug 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.create authenticated client
[email protected]_file(url, path, mime_type, entry)
3.No file found in upload request.


What is the expected output? What do you see instead?
I would like to be able to upload a video to youtube


What version of the product are you using? On what operating system?
Windows XP SP3, gdata version 1.1.1

Please provide any additional information below.
in "class MimeBody" replace "wrap_entry" with this code to fix it.

"def wrap_entry(entry, file_mime_type)
        wrapped_entry = "--#{@boundary}\r\n"
        wrapped_entry += "Content-Type: application/atom+xml;
charset=UTF-8\r\n\r\n"
        wrapped_entry += entry
        wrapped_entry += "\r\n--#{@boundary}\r\n"
        wrapped_entry += "Content-Type: #{file_mime_type}\r\n"
        wrapped_entry += "Content-Transfer-Encoding: binary\r\n\r\n"        
        return MimeBodyString.new(wrapped_entry)
      end"

Original issue reported on code.google.com by [email protected] on 8 Dec 2009 at 3:34

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant