Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

file upload extension


Gasse1014life

Recommended Posts

i have update an addon from 2.2 to fit to 2.3, its finnish and workin great. but after reducing tthe code i have lost the right to upolad any other files than img..

 

i need to know wich statement ot tag allow only image file to upload,

 

thank you in advance..

 

 

 

 

 

 

 

 

 

 

 

 

 

http://addons.oscommerce.com/info/8161

Link to comment
Share on other sites

i have found the answer.

 

magical site are available

-http://phpxref.com/xref/oscommerce/

-http://www.oscdox.co...ions/index.html

 

 

the answer is in this file:

catalog/admin/includes/classes/upload.php

 

 

 

 

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

$this->set_file($file);

$this->set_destination($destination);

$this->set_permissions($permissions);

$this->set_extensions($extensions);

 

 

only add extension will be allowed

 

 

cheer

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...