This is a migrated thread and some comments may be shown as answers.

Async Upload Encoding Error

7 Answers 60 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Albert Shenker asked on 03 Oct 2014, 02:18 PM
From time to time I see the following error caught in our system's error logs:

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters.
   at System.Convert.FromBase64String(String s)
   at Telerik.Web.UI.CryptoService.Decrypt(String encryptedString, String password)
   at Telerik.Web.UI.AsyncUploadHandler.GetConfiguration(String rawData)
   at Telerik.Web.UI.AsyncUploadHandler.EnsureSetup()
   at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
   at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)
   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

I haven't been able to tie it t any specific input or activity. Any idea what might be causing it?

7 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 08 Oct 2014, 08:53 AM
Hello Albert,

Such issue is probably caused by the fact that on some operating systems like MAC OS and Linux it is possible to have file names, which are invalid for the Windows File System. Files names can contain special characters or just don't follow the Microsoft's Naming Convention. Hence the encountered issue and the inability to upload a file occurs. Please refer to the following documentation article, which demonstrates how this behavior could be overcame:

http://www.telerik.com/help/aspnet-ajax/asyncupload-uploading-files-from-mac.html

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Albert Shenker
Top achievements
Rank 1
Veteran
answered on 08 Oct 2014, 12:49 PM
I'm not a huge fan of Apple. But I believe there are one or two people out there in the world who are. Why is this fix not a part of the built-in handler?
0
Nencho
Telerik team
answered on 13 Oct 2014, 11:24 AM
Hello Albert,

Implementing such extension of the functionality of the RadAsyncUpload will be unnecessary in most scenarios. This is why, we grant our customers with the ability to extend the functionality of the control using the approach, demonstrated in the previously referenced article.

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Albert Shenker
Top achievements
Rank 1
Veteran
answered on 13 Oct 2014, 12:15 PM
I appreciate the fact that developers have a way to extend the Telerik controls and fix the issue. I'm not sure I understand why this isn't something that you guys would build into your controls, especially, since it looks like it would be very easy to do and doesn't appear like it will cause any breaking changes on your part. You're telling me that an entire universe of Mac users may run into this problem if their file names happen to have characters that Windows doesn't like. I'm sure this is not something that happens all the time, but still, the fact that it happens at all and may potentially affect a very large number of people, makes it seem like something that should be on your radar as a fix. The fact that you have a help file titled.. "How to upload files from Mac or Linux" is kind of startling to me. You guys go to great lengths to make your controls look and function right on different browser platforms, right out of the box. But you seem hesitant to take simple steps to make sure they work on different operating systems without developer intervention. Why is that?
0
Nencho
Telerik team
answered on 16 Oct 2014, 11:05 AM
Hello Albert,

 
 
 
It was my mistake, failing to clarify another important reason for our decision, regarding the implementation of this functionality. With the demonstrated workaround, we provide our clients with the ability to escape the characters in question in a desirable manner, which won't be possible if we had hard-coded certain approach in escaping characters.

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Albert Shenker
Top achievements
Rank 1
Veteran
answered on 16 Oct 2014, 12:31 PM
Your workaround is for developers to create a new handler class and override the ChangeOriginalFileName function. Developers can STILL do this if your internal implementation does not meet their needs. The fact is, right now you have NO internal implementation and a large segment of end-users are susceptible to errors. So, it is your position that, instead of fixing your internal code to avoid errors, it is better to leave it as is and allow end-users to experience errors, forcing developers to spend unnecessary time hunting for solutions in your help files and forums? I don't understand the thought process that leads to this conclusion.
0
Nencho
Telerik team
answered on 21 Oct 2014, 10:41 AM
Hello Albert,

We understand your concerns and this is why I would suggest you to submit you suggestion in our public portal below, where it can be vote for and eventually implemented:

http://feedback.telerik.com/Project/108



Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AsyncUpload
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Answers by
Nencho
Telerik team
Albert Shenker
Top achievements
Rank 1
Veteran
Share this question
or