Adding attachment with transaction when running in server-side
DocuActionArchive class
Add method
if (docuRules)
{
// Begin
//fileSize = WinAPI::fileSize(attachFilename);
if(isRunningOnServer())
{
fileSize = WinAPIServer::fileSize(attachFilename);
}
else
{
fileSize = WinAPI::fileSize(attachFilename);
}
// End
isFileSizeOk = Docu::validateFileSize(_docuRef.docuType() ,fileSize);
}
else
{
// Begin
//WinAPI::copyFile(attachFilename, docuFilename);
if(isRunningOnServer())
{
WinAPIServer::copyFile(attachFilename, docuFilename);
}
else
{
WinAPI::copyFile(attachFilename, docuFilename);
}
//End
}
DocuActionArchive class
Add method
if (docuRules)
{
// Begin
//fileSize = WinAPI::fileSize(attachFilename);
if(isRunningOnServer())
{
fileSize = WinAPIServer::fileSize(attachFilename);
}
else
{
fileSize = WinAPI::fileSize(attachFilename);
}
// End
isFileSizeOk = Docu::validateFileSize(_docuRef.docuType() ,fileSize);
}
else
{
// Begin
//WinAPI::copyFile(attachFilename, docuFilename);
if(isRunningOnServer())
{
WinAPIServer::copyFile(attachFilename, docuFilename);
}
else
{
WinAPI::copyFile(attachFilename, docuFilename);
}
//End
}
No comments:
Post a Comment