Page 1 of 1

OpenCart 3.1.0.0_b

Posted: Tue Nov 12, 2019 12:18 pm
by t3ch_guru
cannot upload mp3 files to the download section in opencart 3.1.0.0_b I have tried everything to changing file sizes and nothing is working I do not host my store online its for an internal network only with no domain so I do not have isp restrictions but it gives me an upload required error I have modified the php config file file length and also included it in the allowed file extensions and allowed mime types under server settings and also included it in the www\Store\admin\controller\common\filemanager.php file I also have 160000000 set for max file size under upload ive tried uploading a picture and it works fine which is 124kb the mp3 is 31.8mb and fails here is my info have tried with different browsers and all have same results I currently am using google chrome I have also tried using the server directly at localhost with same error results
my php ini file with extras added trying everything

magic_quotes_gpc = Off
register_globals = Off
file_uploads = on
default_charset = UTF-8
memory_limit = 64M have changed this to make it higher nothing works
post_max_size = 999M have changed this
max_execution_time = 18000 have changed this
upload_max_filesize = 999M have changed this
max_input_vars = 10000 have changed this
safe_mode = Off
mysql.connect_timeout = 20
session.auto_start = Off
session.use_only_cookies = On
session.use_cookies = On
session.use_trans_sid = Off
session.cookie_httponly = On
session.cookie_lifetime = 3600
session.gc_maxlifetime = 3600
allow_url_fopen = On
display_errors = 1
error_reporting = E_ALL

// Allowed file extension types in filemanager.php file
$allowed = array(
'jpg',
'jpeg',
'gif',
'png',
'mp3' added this
'mpeg' added this
'mpg' added this
// Allowed file mime types in filemanager.php file
$allowed = array(
'image/jpeg',
'image/pjpeg',
'image/png',
'image/x-png',
'image/gif'
'audio/mp3' added this
'audio/mpeg' added this
'audio/mpg' added this

Re: OpenCart 3.1.0.0_b

Posted: Tue Nov 12, 2019 5:24 pm
by xxvirusxx
Better report here because isn't final version
https://github.com/opencart/opencart/issues

Re: OpenCart 3.1.0.0_b

Posted: Tue Nov 12, 2019 10:00 pm
by Johnathan
Also, if you're creating a live store, use an official version (either 3.0.3.2 or 2.3.0.2). The alpha/beta versions will have bugs, guaranteed.

Re: OpenCart 3.1.0.0_b

Posted: Tue Nov 12, 2019 11:23 pm
by letxobnav
Even for a non-live store, for that alpha version you will not find much support here.

Re: OpenCart 3.1.0.0_b

Posted: Wed Nov 13, 2019 5:31 pm
by t3ch_guru
got it figured out finally it wasnt working after reverting back to the latest stable version either I suppose it was my php server limits I tried editing the php.ini directly but it still didnt work so I just added upload_max_filesize 999M and post_max_size 999M to an .htaccess file and put it in the store directory