AnsweredAssumed Answered

Java Backed Web Script : Problem uploading documents

Question asked by oskarlanda on Mar 8, 2012
Latest reply on Jun 4, 2013 by kofwhgh

I have a java backed WebScript  for upload documents, implementing this code:

FormField formField = ((WebScriptServletRequest) req).getFileField(fileName.toString());

I was using Alfresco 3.4 Enterprise, and  now I have upgrade to 4.0.c

Now the casting raises an error because the request type is: org.alfresco.repo.web.scripts.RepositoryContainer$BufferedRequest that inherits from  WebScriptRequest, but not from  WebScriptServletRequest.

any ideas ?

Thank's in advance.