Server Error 500 when using [uploadFile] function to upload local file to [Account]
We would like to upload file to one of accounts using Zoho API.
However we get Server ERROR 500 when trying to do it.
What are we doing wrong?
Detais of request:
- POST https://crm.zoho.com/crm/private/xml/Accounts/uploadFile HTTP/1.1
- Content-Type: multipart/form-data; boundary=----------------------------8cff92225060c35
- Host: crm.zoho.com
- Content-Length: 573
- Expect: 100-continue
- ------------------------------8cff92225060c35
- Content-Disposition: form-data; name="scope";
- crmapi
- ------------------------------8cff92225060c35
- Content-Disposition: form-data; name="authtoken";
- 15eb4ee57fb1a4623b2e8b8692dadcfe
- ------------------------------8cff92225060c35
- Content-Disposition: form-data; name="id";
- 681948000000123012
- ------------------------------8cff92225060c35
- Content-Disposition: form-data; name="content"; filename="C:\Temp\test.txt"
- Content-Type: application/octet-stream
- test
- ------------------------------8cff92225060c35
Response is following:
- HTTP/1.1 500 Internal Server Error
- Strict-Transport-Security: max-age=432000
- Set-Cookie: JSESSIONID=7BB6CF991DDD4C6C9D906B565660F63F; Path=/crm
- Set-Cookie: a623215f16=3; Path=/
- Content-Type: text/html;charset=UTF-8
- Date: Wed, 27 Mar 2013 14:49:12 GMT
- Server: ZGS
- P3P: CP="CAO PSA OUR"
- Transfer-Encoding: chunked
- 8be
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html><head></head>
-
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html><head><title>Zoho CRM - Error</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Pragma" content="no-cache"><link href="/crm/css/blue_banner.css" rel="stylesheet" type="text/css"></head><body leftmargin="0" topmargin="0" class="bodyBg" marginheight="0"
- marginwidth="0">
- <table width="98%" height="100%" border="0" align="center"
- cellpadding="0" cellspacing="0"
- style="background-color: rgb(255, 255, 255);">
- <tbody>
- <tr><td height="400" align="center" valign="middle"
- class="layoutBorder" style="padding-bottom: 10px;">
- <table border="0" cellpadding="0" cellspacing="0" width="670"><tbody>
- <tr align="left"><td class="signinTxt" style="color: rgb(0, 0, 0);"> <table border="0" cellspacing="0" cellpadding="0"
- width="100%" background="/crm/images/genPgBg.gif">
- <tbody>
- <tr><td><img src="/crm/images/genPgLeft.gif"></td> <td><img src="/crm/images/genPgLogo.gif"
- alt="Zoho CRM" title="Zoho CRM" border="0"></td>
- <td><img src="/crm/images/genPgError.gif"
- alt="Errors" title="Errors" style="border: 0px solid ;"></td>
- <td width="100%" class="alignright normalTxt"> <br></td></tr></tbody></table></td>
- <td class="alignright" nowrap="nowrap" valign="middle"> <br></td></tr><tr><td height="180" colspan="2" align="center" valign="top"> <table border="0" cellpadding="0" cellspacing="0"
- width="100%">
- <tbody>
- <tr><td align="left" valign="top"> <table cellpadding="5" cellspacing="5" width="100%"
- style="border-top: 1px solid rgb(204, 204, 204);">
- <tbody>
- <tr><td class="NormalTxt"><br><div align="center"><b>Sorry, the page you have requested was not found</b></div></td></tr><tr><td height="73" align="center" class="NormalTxt"><br>Please check the URL for proper spelling and capitalization.<br><br>If you're having trouble locating a destination on Zoho CRM, try visiting the Zoho CRM home page.<br><br>Go to <a href="/crm/ShowHomePage.do">Home Page</a>
- <br><br><br><br></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td height="50" colspan="2"><br></td></tr></tbody></table></td></tr></tbody></table></body></html>
- </html>
- 0