PDA

View Full Version : File Upload and Display_V2.01.69 for version V 2.3.x



michael_s
09-23-2011, 08:57 PM
I have forgot to do a fix to allow all ext to be upload,

but u can set only the wanted ext. to be upload.

catalog/admin/includes/classes/upload.php

function upload($file = '', $destination = '', $permissions = '777', $extensions = array('jpg','png')) {



only add ext you want to...
and dont forget for some security reason , change 777 to 755
*******************************

in same file ,search for :

if (!is_writeable($this->destination)) {

replace by:

if (!tep_is_writable($this->destination)) {

*******************************


i have reverse the max file size upload to a min file size upload to allow any file size..


in the same file search for :

if ( tep_not_null($file['tmp_name']) && ($file['tmp_name'] != 'none') && is_uploaded_file($file['tmp_name']) && ($file['size'])100) {


*******************************

NOW its PERFECTLY workin on ALL v2.3 version of oscommerce.

sorry to the pertubation let me another 24 n i will do a new package.




for now the file is attach to this post, use at your own risk.

cheer

More... (http://addons.oscommerce.com/info/8161)