Upload google docs with coldfusion -


i've built forum-like app in coldfusion , want add feature users can upload files google docs using google accounts , other users can edit files.

i've been using cfc: http://cfgoogle.riaforge.org/ retrieve google docs, upload function missing. need upload function first upload of file , second part of editing it. hope makes sense.

that's i'm asking for. i'm not experienced cffunctions , wondering if give me hand it.

this have far:

<cffunction name="upload" access="public" returntype="any" hint="i upload document." output="false"> <cfargument name="myfile" type="string" required="true" hint="file upload.">  <cfset var result = ""> <cfset var service = variables.docservice>  <cfset theurl = "https://docs.google.com/feeds/documents/private/full http/1.1">  <cfhttp url="#theurl#" method="post" result="result"> <cfhttpparam type="header" name="authorization" value="googlelogin auth=#getauth(service)#"> <cfhttpparam type="header" name="content-length" value="81047"> <cfhttpparam type="header" name="content-type" value="application/msword"> <cfhttpparam type="header" name="slug" value="#myfile#"> </cfhttp>  <cfreturn result.filecontent>  </cffunction> 

but following error when output result: 'invalid request uri'

if me out 1 (even show me way), appreciated.

i try expand cfgoogle cfc upload method using protocol guide uploading.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -