Fix broken asset upload - did this thing get tested at all???

master
Ansariel 2021-03-03 18:58:11 +01:00
parent 4a3f0ac03d
commit 26aa92d49d
2 changed files with 8 additions and 2 deletions

View File

@ -293,7 +293,10 @@ void LLViewerAssetStorage::storeAssetData(
legacy->mUpCallback = callback;
legacy->mUserData = user_data;
LLFileSystem file(asset_id, asset_type, LLFileSystem::WRITE);
// <FS:Ansariel> Fix broken asset upload
//LLFileSystem file(asset_id, asset_type, LLFileSystem::WRITE);
LLFileSystem file(asset_id, asset_type, LLFileSystem::APPEND);
// </FS:Ansariel>
const S32 buf_size = 65536;
U8 copy_buf[buf_size];

View File

@ -498,7 +498,10 @@ LLSD LLNewFileResourceUploadInfo::exportTempFile()
infile.open(filename, LL_APR_RB, NULL, &file_size);
if (infile.getFileHandle())
{
LLFileSystem file(getAssetId(), assetType, LLFileSystem::WRITE);
// <FS:Ansariel> Fix broken asset upload
//LLFileSystem file(getAssetId(), assetType, LLFileSystem::WRITE);
LLFileSystem file(getAssetId(), assetType, LLFileSystem::APPEND);
// </FS:Ansariel>
const S32 buf_size = 65536;
U8 copy_buf[buf_size];