string aURL = aFileIter.URL();
string aFileName = aURL.substr(aURL.find_last_of("/\\")+1);
int startUnderlineIndex = aFileName.find_first_of("_") + 1;
- string aSourceFileName = aFileName.substr(startUnderlineIndex, aFileName.find_last_of(".") - startUnderlineIndex);
+ string aSourceFileName = aFileName.substr(startUnderlineIndex);
//cout << "aURL = " << "http://" << aSimanWSHost << "/repository/" << aURL << "\n";
string aPathToVault = aResponseFilePath.substr(0, aResponseFilePath.find("download")) + "vault/";