Customize AjaxFileUpload messages and language RRS feed

  • Question

  • User2018862744 posted


    I've added an AjaxFileUpload to my page, and it is working fine except for the localization, that remains in English as much as I try.

    I have a Calendar Extender on my page that is working fine and in my language (portuguese), so I can't figure out where the problem might be coming from.

    I have this in my web.config:

     <globalization culture="pt-PT" uiCulture="pt-PT"
           requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"
            fileEncoding="iso-8859-1" />

    And this in my toolkit script manager

        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true">

    My file upload is as simples as it can get:

    <asp:AjaxFileUpload ID="fileUpload" runat="server" />

    Any ideas on why is not working?

    Also, any idea on how I can customize the error messages for each file? I want to tell the user exactly why the file was rejected and not a general error message.

    Thanks in advance,

    Friday, August 3, 2012 11:15 AM

All replies

  • User555306248 posted

    Hope this link help you, how to use ajax for multiple language and fileupload:


    Sunday, August 5, 2012 11:24 PM
  • User2018862744 posted

    To be honest, that didn't help me much.

    Do I need the alter the html like that? Wasn't ajax toolkit supposed to support differente languages?

    Wednesday, August 8, 2012 5:13 AM
  • User-1348062707 posted

    Same problem here.

    Trying to change the labels to another language, but can't find an option for that.

    Any solution?

    Saturday, September 1, 2012 6:29 PM
  • User1885943867 posted



    Same problem !


    Thursday, September 6, 2012 7:54 AM
  • User1885943867 posted

    try that

    <style type="text/css">
    /* Buttons widths */
    .ajax__fileupload_fileItemInfo div.removeButton{width:100px;}
    .ajax__fileupload .ajax__fileupload_selectFileContainer{width: 110px;}
    .ajax__fileupload_selectFileContainer .ajax__fileupload_selectFileButton{width: 110px;}
     <script type="text/javascript">
        //run AjaxFileUpload_change_text() function after page load
    	//that example uses  jquery 
         $(document).ready(function () {
         function AjaxFileUpload_change_text() {
    	 //Here you can write whatever you want = "..."
             Sys.Extended.UI.Resources.AjaxFileUpload_SelectFile = "Select File"; 
             Sys.Extended.UI.Resources.AjaxFileUpload_DropFiles = "Drop files here";
             Sys.Extended.UI.Resources.AjaxFileUpload_Pending = "pending";
             Sys.Extended.UI.Resources.AjaxFileUpload_Remove = "Remove";
             Sys.Extended.UI.Resources.AjaxFileUpload_Upload = "Upload";
             Sys.Extended.UI.Resources.AjaxFileUpload_Uploaded = "Uploaded";
             Sys.Extended.UI.Resources.AjaxFileUpload_UploadedPercentage = "uploaded {0} %";
             Sys.Extended.UI.Resources.AjaxFileUpload_Uploading = "Uploading";
             Sys.Extended.UI.Resources.AjaxFileUpload_FileInQueue = "{0} file(s) in queue.";
             Sys.Extended.UI.Resources.AjaxFileUpload_AllFilesUploaded = "All Files Uploaded.";
             Sys.Extended.UI.Resources.AjaxFileUpload_FileList = "List of Uploaded files:";
             Sys.Extended.UI.Resources.AjaxFileUpload_SelectFileToUpload = "Please select file(s) to upload.";
             Sys.Extended.UI.Resources.AjaxFileUpload_Cancelling = "Cancelling...";
             Sys.Extended.UI.Resources.AjaxFileUpload_UploadError = "An Error occured during file upload.";
             Sys.Extended.UI.Resources.AjaxFileUpload_CancellingUpload = "Cancelling upload...";
             Sys.Extended.UI.Resources.AjaxFileUpload_UploadingInputFile = "Uploading file: {0}.";
             Sys.Extended.UI.Resources.AjaxFileUpload_Cancel = "Cancel";
             Sys.Extended.UI.Resources.AjaxFileUpload_Canceled = "cancelled";
             Sys.Extended.UI.Resources.AjaxFileUpload_UploadCanceled = "File upload cancelled";
             Sys.Extended.UI.Resources.AjaxFileUpload_DefaultError = "File upload error";
             Sys.Extended.UI.Resources.AjaxFileUpload_UploadingHtml5File = "Uploading file: {0} of size {1} bytes.";
             Sys.Extended.UI.Resources.AjaxFileUpload_error = "error";



    Friday, September 7, 2012 11:43 AM
  • User-241175780 posted

    Thank you this solution worked good with me 

    Saturday, January 11, 2014 7:09 AM