Opened this issue 7 years ago · 3 comments
patch.zip This can help you.
I applied this patch and received this error on line 1141: [DCC Error] RestClient.pas(1141): E2018 Record, object or class type required [DCC Fatal Error] D2010_RestApi.dpk(46): F2063 Could not compile used unit '....\src\RestClient.pas'
@jzapater On TMultipartFormData.AddFieldContent procedure, replace the line: if Field.FieldType.Name.Equals(TMultiPartFormAttachment.ClassName) then
if Field.FieldType.Name.Equals(TMultiPartFormAttachment.ClassName) then
by if SameText(Field.FieldType.Name, TMultiPartFormAttachment.ClassName) then
if SameText(Field.FieldType.Name, TMultiPartFormAttachment.ClassName) then
It should compile and build the package.
Regards.