How to Increase Max File Size?

ClassiBase classifieds script Forums General help How to Increase Max File Size?

This topic contains 3 replies, has 2 voices, and was last updated by  ClassiBase 2 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1039 Reply

    Elite Tan
    Participant

    Support please help how to increase max file size see attached, which file and code to edit? Thanks in advanced 🙂

    file-size

    #1050 Reply

    ClassiBase
    Keymaster

    File size is defined as 2 MB for all images uploaded to ad. if you have 10 images then it is 200Kb per image. if you have 5 images then it is 400kb. if 2 images then 1 MB . to change this limit you have to edit /sys/app/models/Adpics.php file, upload() menthod. on line 129 edit $upload_config['max_size'] = '2000'; value change to 20000 or any value you want.
    These changes will be deleted on script update so remember this when updating script.
    Alternatively you can use vqmod to make changes to files on the fly. but you have to do it on your own because it requires advanced php knowledge and we cannot provide support for vqmod.

    #1065 Reply

    info

    Could that option be set via admin settings, in a next release, as a maximum per picture? In that way, no core file would be changed by users, and nothing could be lost in an upgrade.
    Thank you.

    #1951 Reply

    ClassiBase
    Keymaster

    Sure, we will schedule it for next release. Thank you for suggestion.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to Increase Max File Size?
Your information: