OpenMetaverse.AssetManager.RequestUpload C# (CSharp) Method

RequestUpload() public method

Request an asset be uploaded to the simulator
public RequestUpload ( Asset asset, bool storeLocal ) : UUID
asset Asset The Object containing the asset data
storeLocal bool If True, the asset once uploaded will be stored on the simulator /// in which the client was connected in addition to being stored on the asset server
return UUID
        public UUID RequestUpload(Asset asset, bool storeLocal)
        {
            if (asset.AssetData == null)
                throw new ArgumentException("Can't upload an asset with no data (did you forget to call Encode?)");

            UUID assetID;
            UUID transferID = RequestUpload(out assetID, asset.AssetType, asset.AssetData, storeLocal);
            asset.AssetID = assetID;
            return transferID;
        }

Same methods

AssetManager::RequestUpload ( AssetType type, byte data, bool storeLocal ) : UUID
AssetManager::RequestUpload ( UUID &assetID, AssetType type, byte data, bool storeLocal ) : UUID
AssetManager::RequestUpload ( UUID &assetID, AssetType type, byte data, bool storeLocal, UUID transactionID ) : UUID