|
Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews. |
Advertisement | |
This is an HTML example. Isn't it just wonderful?!?!
|
|
Learn how to remove ads |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Limit file upload size (Thumbnail to original image upload)
Hi
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. |
#2
|
||||
|
||||
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:
Code:
<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 |
Thread Tools | |
Display Modes | |
|
|
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 |