Gasse1014life Posted September 24, 2011 Posted September 24, 2011 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
Gasse1014life Posted September 24, 2011 Author Posted September 24, 2011 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
Gasse1014life Posted September 24, 2011 Author Posted September 24, 2011 working add on , http://addons.oscommerce.com/info/8161
Recommended Posts
Archived
This topic is now archived and is closed to further replies.