Fix broken asset upload - did this thing get tested at all???
parent
4a3f0ac03d
commit
26aa92d49d
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue