Cách chỉnh sửa giới hạn upload limit 300kb / 1000 x 1000px Opencart

Posted by admin 07/11/2015 10 Comment(s)

Giới hạn upload 300kb và kích thước lớn nhất 1000px x 1000px của Opencart tất nhiên là tương đối hợp lý vì với kích thước quá lớn thì cũng không view hết trên màn hình mà dung lượng lớn quá thì dẫn đến việc xử lý ảnh và load cũng chậm. Tuy nhiên việc kích thước ảnh lớn và dung lượng lớn cũng có nhiều cái lợi nhất là khi bạn là nhà phân phối bạn phải cung cấp hình ảnh ở độ phân giải tốt nhất và sắc nét nhất cho đại lý. Việc cung cấp hình ảnh rõ ràng, chất lượng cao giúp cho khách hàng của bạn xem hình ảnh rõ nhất.

Cách chỉnh sửa giới hạn upload limit 300kb / 1000 x 1000px Opencart tương đối đơn giản. Bạn chỉ cần mở file admin/controller/common/filemanager.php tìm đoạn:

if ($this->request->files['image']['size'] > 300000) {
    $json['error'] = $this->language->get('error_file_size');
}

Sửa 300000 sửa số này thành số bạn muốn. Chúc các bạn thành công!

10 Comment(s)

Kathleen Richardson:
03/10/2025, 09:50:09 PM, levited.com
Reply

Hi, I do believe this is an excellent web site. I stumbledupon it ; ) I will come back yet again since I book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

Richard Adams:
07/10/2025, 12:30:31 AM, antibact.sbs
Reply

I'm not sure where you are getting your information, but great topic. I needs to spend some time learning more or understanding more. Thanks for magnificent info I was looking for this info for my mission.

Richard Adams:
07/10/2025, 03:52:22 AM, antibact.sbs
Reply

I'm not sure where you are getting your information, but great topic. I needs to spend some time learning more or understanding more. Thanks for magnificent info I was looking for this info for my mission.

Terry Higgins:
10/10/2025, 03:35:57 AM, dapoxetined.org
Reply

I all the time used to study paragraph in news papers but now as I am a user of web therefore from now I am using net for content, thanks to web.

Robert Lopez:
10/10/2025, 03:24:48 PM, amoxibest.top
Reply

I’ll immediately seize your rss feed as I can not find your e-mail subscription link or newsletter service. Do you have any? Kindly permit me recognize in order that I could subscribe. Thanks.

Amber Casey:
11/10/2025, 12:40:49 AM, medshop24h.top
Reply

I am sure this piece of writing has touched all the internet people, its really really fastidious post on building up new website.

Maxwell Gutierrez:
11/10/2025, 08:57:02 PM, tadalah.com
Reply

Everything is very open with a clear explanation of the challenges. It was definitely informative. Your site is extremely helpful. Thanks for sharing!

James Hernandez:
12/10/2025, 04:52:34 AM, sildenafiil.cc
Reply

There's certainly a lot to learn about this subject. I like all the points you made.

Teresa Alvarado DDS:
12/10/2025, 04:04:59 PM, propeciaa.sbs
Reply

I am sure this post has touched all the internet visitors, its really really good paragraph on building up new webpage.

Cory Richards:
12/10/2025, 10:32:59 PM, sildenaguide.com
Reply

Good post. I am facing many of these issues as well..

Write a Comment