Javascript error for Uploadbox.Locale

Hello.

Dependencies were added using Nuget.

Page has references to CDN:
    <link rel='nofollow' href="//cdn.syncfusion.com/18.4.0.43/js/web/flat-azure/ej.web.all.min.css" rel="stylesheet" />
    <script src="//cdn.syncfusion.com/js/assets/external/jquery-3.3.1.min.js"></script>
    <script src="//cdn.syncfusion.com/js/assets/external/jquery.globalize.min.js"></script>

    <script src="//cdn.syncfusion.com/js/assets/external/jsrender.min.js"></script>
    <script src="//cdn.syncfusion.com/18.4.0.43/js/web/ej.web.all.min.js"></script>
    <script src="//cdn.syncfusion.com/18.4.0.43/js/common/ej.webform.min.js"></script>


Control is added on page (inside UpdatePanel):
                                    <ej:UploadBox ID="UploadBox1" runat="server" AllowDragAndDrop="true"
                                        ExtensionsAllow=".jpg,.pdf"
                                        Locale="en-GB"
                                        MultipleFilesSelection="true"
                                        SaveUrl="DocumentUpload.ashx"
                                        RemoveUrl="DocumentRemove.ashx"></ej:UploadBox>

When page is shown in browser - control is rendered (Browse button is shown) but console has JS error:

Uncaught TypeError: t.Uploadbox.Locale[this.model.locale] is undefined
    _dragAndDrop http://cdn.syncfusion.com/18.4.0.39/js/web/ej.web.all.min.js:10
    _initialize http://cdn.syncfusion.com/18.4.0.39/js/web/ej.web.all.min.js:10
    _init http://cdn.syncfusion.com/18.4.0.39/js/web/ej.web.all.min.js:10
    h http://cdn.syncfusion.com/18.4.0.39/js/web/ej.web.all.min.js:10
    f http://cdn.syncfusion.com/18.4.0.39/js/web/ej.web.all.min.js:10

Error is shown and no popup "Upload Box" is shown after selecting file. I tried to remove Locale in control but it didn't help.

3 Replies 1 reply marked as answer

KR Keerthana Rajendran Syncfusion Team February 23, 2021 09:30 AM UTC

Hi Paul, 
 
Thanks for contacting Syncfusion support. 
 
We have checked the reported issue in our end with the provided details but unfortunately we were unable to replicate the issue in our end. We have rendered Uploadbox using your code and attached in the following link.  
 
 
Also, it seems the CDN links referred are 18.4.0.43 version but the error is thrown from 18.4.0.39 version. Please ensure whether you have multiple script reference in your sample.   
 
Refer to the corresponding localization script in your sample as shown below 
 
  <script src='<%= Page.ResolveClientUrl("~/Scripts/ej/l10n/ej.localetexts.en-GB.min.js")%>' type="text/javascript"></script> 
 
Refer to the following links for more details on ejUploadbox control. 
 
 
 
 
 
Please check the above details and if the issue persists, please modify the above sample along with your exact product version to replicate the issue. This will help us to serve you better.  
 
Regards, 
Keerthana.  


Marked as answer

PA Paul February 23, 2021 06:02 PM UTC

Thank you. It solved problem.


KR Keerthana Rajendran Syncfusion Team February 24, 2021 06:05 AM UTC

Hi Paul,  
 
Most welcome. We are glad to know that the issue has been resolved at your end. Please get back to us if you need further assistance. 
 
Regards, 
Keerthana.  


Loader.
Up arrow icon