Post by arhatron » Sat Oct 26, 2024 4:12 pm

I downloaded a language extension. File name: "osec_language.ocmod.zip", When I click upload, it alerts "error_file_size". I see the html:

Code: Select all

        $('#form-upload input[name=\'file\']').on('change', function () {
            if ((this.files[0].size / 1024) > 0) {
                $(this).val('');

                alert('error_file_size');
            }

            if (!this.files[0].name.endsWith('.ocmod.zip')) {
                $(this).val('');

                alert('');
            }
        });
It means that file size cannot bigger than 0 ?

New member

Posts

Joined
Wed Sep 07, 2016 12:38 pm

Post by JNeuhoff » Sat Oct 26, 2024 5:43 pm

Is there a reason why you won't contact the extension author on this?

If you want help here, then we need more details, see forum rules, such as OC version, exact language extension used, etc.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by grgr » Sun Oct 27, 2024 9:36 pm

The template file is incorrect. What did you do?

should be

Code: Select all

if ((this.files[0].size / 1024) > {{ config_file_max_size }}) {

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK
Who is online

Users browsing this forum: No registered users and 3 guests