Hi,
I will probably need fiddler to get this one figured out, but has anyone who uses the Google Advanced REST client seen this behaviour with file uploads to the CS REST API? What is happening is it's failing with an error when it tries to set the file. WHy it is failing is because instead of getting multiple files, including ones from previous requests. I don't know if this is a Google REST client problem, an IIS problem, or a Content Server problem. One thing though that the REST API Is not handling well is the case where you have multiple files. Here is a sample of the request params:
file = 'C:\Windows\TEMP\otup47A719EAD06A4CAAA4D4D8462ED2DBB60'
file_content_type = 'text/plain'
file_content_type_list = '{''text/plain'',''image/jpeg'',''application/octet-stream'',''text/plain''}'
file_dcsMimeTypeStatus = 'failure'
file_dcsMimeTypeStatus_list = '{''failure'',''failure'',''failure'',''failure''}'
file_filelength = '646'
file_filelength_list = '{''646'',''125135'',''46080'',''3202''}'
file_filename = 'TextPad License Backup.txt'
file_filename_list = '{''TextPad License Backup.txt'',''anonymousWS.JPG'',''resume2012-ECM.doc'',''WFSampleForJP.txt''}'
file_list = '{''C:\\Windows\\TEMP\\otup47A719EAD06A4CAAA4D4D8462ED2DBB60'',''C:\\Windows\\TEMP\\otup7744D6873D1342A7822DB3AB0BA350C40'',''C:\\Windows\\TEMP\\otup0A357B79DE27475AA8DDFDD4C957CC190'',''C:\\Windows\\TEMP\\otup122584355C494355B18D2B313005ABC90''}'
G
As you can see, there are multiples from all the previous requests. I tried restarting IIS and my rest client to no avail. Has anyone seen this before?
Note to OpenText, on the CSNode.SetFile() method, it tests whether the file argument is a String and fails if it's something else (i.e. in this case, a list). If this is intentional, a more descriptive message would be helpful.
-Hugh