title: Sharepoint 2010 - Client Object Model Upload content to document library
body: <p>I have the following requirement:</p>
  
  <p>I have created a Flash application that is embedded in a Sharepoint Application Page.  In the Flash application I have to upload text (I cannot create a file on the client side without prompting the user, so I just have to upload the content in plain text) to a document library of the user's choice. </p>
  
  <p>When the text is uploaded (as a .url file), I have to redirect the browser to the edit form that is associated with the library (or more specific with the content type of the new item). </p>
  
  <p>How can I upload content (plain text) as a new document to a Document library using the Client Object Model?</p>
  
  <p>Kind regards,</p>
  
  <p>Karel</p>