The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

  Learn how to remove ads

Thread Tools Display Modes
Old 03-21-2008, 12:35 AM
-RL- -RL- is offline
Junior Member
Join Date: May 2007
Posts: 15
Geek Article and Review System License Holder 
Question Limit file upload size (Thumbnail to original image upload)


is it possible to limit the filesize for uploaded images?
I've set it to 30000 for a custom field (Thumbnail to original image upload), but I'm still able to upload images well over 200k.
Does that setting only limit the thumbnail size and not the actual image file itself??

I've got the "Maximum upload size in bytes" in setting set to 100000, but that's for header images only, right?

Thanks in advance.
Reply With Quote
Old 03-24-2008, 05:25 PM
Morgan's Avatar
Morgan Morgan is offline
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 

When doing thumbnail to original image, the original image is not resized. vB 3.7 has a new function called fetch_best_resize and the GARS geek_class_upload.php file has some untested code that is commented out to make use of that function. Again it is untested code and only for those using vB 3.7 and up. You can try uncommenting the three blocks of code that are commented out in the geek_class_upload.php file and see if it works, assuming you are using vB 3.7 and up, or you'd need to take the if ($this->dooriginal) block of code in the geek_class_upload.php file and make it similar to the if ($this->dothumb) block of code in the geek_class_upload.php file if you want to make the original image a thumbnail too. Alternatively you could add the following to the GARS_custom_thumbnail template to try and limit filesize from the client-side, where X is a number in bytes:
<input type="hidden" name="MAX_FILE_SIZE" value="X" />
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation Help Please - File Upload! Fergal Crawley Geek Gazette 7 08-22-2009 12:11 PM
Unable to upload thumbnail images nuvar Geek Article and Review System 3 01-24-2009 02:29 PM
Can not upload header image stckhlm Geek Article and Review System 7 10-23-2008 06:38 PM
File upload error, max file size reached.... LLIFE Geek Article and Review System 3 01-11-2006 05:35 PM
File upload file type question..... LLIFE Geek Article and Review System 1 01-11-2006 05:24 PM

All times are GMT. The time now is 06:38 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.