예제 #1
0
        public string UploadLabelIcon(IFormFile labelIcon, string id)
        {
            string imageName = "labelicons/" + id;
            AzureBlobServiceProvider azureBlob = new AzureBlobServiceProvider();

            return(azureBlob.UploadFileToBlob(imageName, labelIcon));
        }
예제 #2
0
        //COMMON METHODS
        public string UploadProfileImage(IFormFile profileImage, string id)
        {
            string imageName = "profileimages/" + id;
            AzureBlobServiceProvider azureBlob = new AzureBlobServiceProvider();

            return(azureBlob.UploadFileToBlob(imageName, profileImage));
        }
예제 #3
0
        public string UploadSongCoverImage(IFormFile coverImage, string id)
        {
            string songName = "songcoverart/" + id;
            AzureBlobServiceProvider azureBlob = new AzureBlobServiceProvider();

            return(azureBlob.UploadFileToBlob(songName, coverImage));
        }
예제 #4
0
        //COMMON METHODS
        public string UploadAudioFile(IFormFile audioFile, string id)
        {
            string songName = "songs/" + id;
            AzureBlobServiceProvider azureBlob = new AzureBlobServiceProvider();

            return(azureBlob.UploadFileToBlob(songName, audioFile));
        }
예제 #5
0
        //COMMON METHODS
        public string UploadAlbumCoverImage(IFormFile coverImage, string id)
        {
            string imageName = "albumarts/" + id;
            AzureBlobServiceProvider azureBlob = new AzureBlobServiceProvider();

            return(azureBlob.UploadFileToBlob(imageName, coverImage));
        }
예제 #6
0
        //COMMON METHODS
        public string UploadPlaylistCoverImage(IFormFile coverImage, string id)
        {
            string imageName = "playlistcovers/" + id;
            AzureBlobServiceProvider azureBlob = new AzureBlobServiceProvider();

            return(azureBlob.UploadFileToBlob(imageName, coverImage));
        }