Telerik Forums
UI for WPF Forum
1 answer
41 views

Hey guys,

I'm currently using the CloudUpload to upload files to an internal server.
This happens over multiple single steps in clsDaten.UploadReklamationsDateienKEMdoc.
This would return a true if succesfull uploaded and a false, as well as an error message if not.
I now want to show this error message in the interface and an Error sign instead of the succesfull check.
But I dont find anywhere how.

Does anyone have an idea?

Greetings Benedikt

    public class clsCloudUploadProvider : ICloudUploadProvider
    {
		long uploadFilesCount = 0;

		clsReklamation Reklamation;

		public Task<object> UploadFileAsync(string fileName, Stream fileStream, CloudUploadFileProgressChanged uploadProgressChanged, CancellationToken cancellationToken)
		{
			return Task.Factory.StartNew<object>(() => UploadFile(fileName, fileStream, uploadProgressChanged, cancellationToken), cancellationToken);
		}

		private object UploadFile(string fileName, Stream fileStream, CloudUploadFileProgressChanged uploadProgressChanged, CancellationToken cancellationToken)
		{
			this.uploadFilesCount++;
			var fileLength = fileStream.Length;

			uploadProgressChanged(fileLength);

			object[] ImportState = Import(fileStream, fileName);

			if ((bool)ImportState[0])
			{
				return fileName;
			}
			else
			{
				return null;
            }
		}

		public object[] Import(Stream filestream, string filename)
		{
			return clsDaten.UploadReklamationsDateienKEMdoc(Reklamation, (filestream as FileStream).Name);
		}

		public clsCloudUploadProvider(clsReklamation reklamation)
		{
			Reklamation = reklamation;
		}
	}


Martin Ivanov
Telerik team
 answered on 08 Oct 2024
1 answer
169 views

I'm trying to create a file upload or download function to the cloud in WPF.

I heard that this product can upload to the cloud, but I would like to know if it is compatible with all clouds.

I would also like to know the maximum size that can be uploaded.

Martin Ivanov
Telerik team
 answered on 12 Jan 2024
1 answer
83 views

Hello,

how to dectect if upload is completed?
for me i will use the cloud upload control in diffenent windows to update diffenet objects. 

actually i found no way to find out if the upload control upload ist completed?

kind regards

Martin Ivanov
Telerik team
 answered on 18 Jul 2023
1 answer
100 views

HI:

In the CloudUpload demo it uses a local service provider based on api.everlive.com but this link is broken. How can I run the demo? also how can I create the asp.net api to have it locally?

api.everlive.com

Martin Ivanov
Telerik team
 answered on 14 Nov 2022
1 answer
111 views

HI:

I want to create a custom api service to upload a file. In fact, I have one and works fine with postman. How Can I use it with CloudUpload?

Thanks in advance

Martin Ivanov
Telerik team
 answered on 10 Nov 2022
1 answer
107 views

The WPF demo doesn't load Cloud Upload:

 

Martin Ivanov
Telerik team
 answered on 10 Nov 2022
5 answers
107 views
Hi,

CloudUpload is a relay good idea, but how about CloudDownload?

And I relay like to see support for "One Drive" or "Dropbox", this a an alernitive for the users that Azure is to expensive.

Thanks!
Martin Ivanov
Telerik team
 answered on 12 Nov 2019
3 answers
156 views

Hi,

I'm using the CloudUpload in my application, and I was wondering if there was anyway to update the tooltip language resource of the RadCloudUploadListItem Close Button (I joined a screenshot of the tooltip I'm talking about). I wasn't able to find it in the xaml style template.

Could someone help me with this issue?

Thank you,

Vladimir Stoyanov
Telerik team
 answered on 17 Apr 2019
1 answer
93 views
Is there a way for cancelling an individual download, or can you only call RequestCancel (which cancels all uploading items)?
Vladimir Stoyanov
Telerik team
 answered on 14 Jan 2019
6 answers
345 views

I'm looking for a way of not just selecting files for upload but entire folder structures. I was hoping I could use the CreateOpenFileDialog delegate to return the RadOpenFolderDialog however this function expects a return type of Microsoft.Win32.OpenFileDialog which the Telerik controls do not inherit from.

Any suggestions?

Neil
Top achievements
Rank 1
 answered on 25 Jul 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?