Osclass Support Forums

Osclass plugin support => Virtual Products Plugin => Topic started by: NuCode on June 10, 2018, 09:59:29 PM

Title: File is too big and was not uploaded. Maximum file size is: 20024kb
Post by: NuCode on June 10, 2018, 09:59:29 PM
I encounter this rater strange issue as all my settings are above this limit.

The Media Settings from osclass general settings for images is 500mb

The Virtual plugin settings on plugin settings is 500mb

The server side settings upload limit is 20gb

Can you tell me where to look for this adjustment
Title: Re: File is too big and was not uploaded. Maximum file size is: 20024kb
Post by: MB Themes on June 11, 2018, 08:16:54 AM
Have you checked this with your hosting provider if it comes from hosting?
Title: Re: File is too big and was not uploaded. Maximum file size is: 20024kb
Post by: NuCode on June 14, 2018, 03:46:54 PM
The hot settings are fine i run on the same hosting user/package a video site that can upload videos up to 20gb so it not the hosting, do you have any idea where should i look in to
Title: Re: File is too big and was not uploaded. Maximum file size is: 20024kb
Post by: MB Themes on June 14, 2018, 08:50:45 PM
Check plugin files, there might be hardcoded limit to secure hosting space.
Title: Re: File is too big and was not uploaded. Maximum file size is: 20024kb
Post by: NuCode on June 15, 2018, 12:59:03 PM
So it is hard coded but that is not right, if i set up the size allowed in the plugin settings why is still needed the hardcoded part

in the functions.php ath the line 68

Code: [Select]
    $max_file_size = 20024 * 1000;  //(in bytes) ...20MB    // vrt_param('max_file_size')*1024*1024

if i change to this will it be 520mb

Code: [Select]
    $max_file_size = 520024 * 1000;  //(in bytes) ...520MB    // vrt_param('max_file_size')*1024*1024

Title: Re: File is too big and was not uploaded. Maximum file size is: 20024kb
Post by: MB Themes on June 15, 2018, 01:31:10 PM
Protect you against yourself... some customers may not be sure what they are doing. We will update it in next update.