mirceabondar Posted November 28, 2012 Share Posted November 28, 2012 Folosesc prestashop 1.4.9.0 si vreau ca cei care viziteaza sa aibe posibilitatea de a incarca fisiere pdf, cdr, psd..Ma gandeam daca merge modificat intrun fel product customization. Tot ce am gasit pe internet nu a functionat. Am adaugat in array-ul din images.inc.php extensia si mime type dar zice ca fisierul nu este recunoscut.Alta idee? Link to comment Share on other sites More sharing options...
valentin.g Posted November 28, 2012 Share Posted November 28, 2012 merge de modificat si sigur gasesti o solutie pe acest forum. eu ti-as recomanda insa sa folosesti unul de siteurile de transfer files wetransfer.com Link to comment Share on other sites More sharing options...
mirceabondar Posted November 28, 2012 Author Share Posted November 28, 2012 Am cautat dar nu am gasit nimic..daca ai un link.. Link to comment Share on other sites More sharing options...
valentin.g Posted November 28, 2012 Share Posted November 28, 2012 http://www.prestashop.com/forums/topic/49094-solvedhow-customers-could-upload-their-own-zip-files/ Link to comment Share on other sites More sharing options...
mirceabondar Posted November 28, 2012 Author Share Posted November 28, 2012 Am incercat linkul acum doua zile dar nu functioneaza metoda Link to comment Share on other sites More sharing options...
valentin.g Posted November 28, 2012 Share Posted November 28, 2012 candva am facut si eu ceva similar si te asigur ca functioneaza. Link to comment Share on other sites More sharing options...
mirceabondar Posted November 29, 2012 Author Share Posted November 29, 2012 Am facut cum scrie in link-ul de mai sus si imi apare asta Fatal error: Call to undefined function isZIP() in /var/www/printpliante/public_html/controllers/ProductController.php on line 421 . Funzia iszip din tutorial le-am bagat in productcontroller Link to comment Share on other sites More sharing options...
valentin.g Posted November 29, 2012 Share Posted November 29, 2012 (edited) pune functia isZip in images.inc.php in radacina function isZip($file) { return getExtension($file['name'])=="zip" ? true : false; } Edited November 29, 2012 by valentin.g (see edit history) Link to comment Share on other sites More sharing options...
mirceabondar Posted November 29, 2012 Author Share Posted November 29, 2012 Imi apare asta: Fatal error: Call to undefined function getExtension() in /var/www/printpliante/public_html/images.inc.php on line 402 Link to comment Share on other sites More sharing options...
valentin.g Posted November 29, 2012 Share Posted November 29, 2012 function isZip($file) { return getExtension($file['name'])=="zip" ? true : false; } function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } Link to comment Share on other sites More sharing options...
mirceabondar Posted November 29, 2012 Author Share Posted November 29, 2012 Cand incerc sa uploadez o imagine nu imi arata nici-o eroare dar nici imaginea ..iar la zip apare asa Notice: Use of undefined constant _PS_PROD_PIC_DIR_ - assumed '_PS_PROD_PIC_DIR_' in /var/www/printpliante/public_html/controllers/ProductController.php on line 430 Warning: copy(_PS_PROD_PIC_DIR_Pd3033bbf13776b030f05e358bcf039b8): failed to open stream: Permission denied in /var/www/printpliante/public_html/controllers/ProductController.php on line 430 Link to comment Share on other sites More sharing options...
mirceabondar Posted November 29, 2012 Author Share Posted November 29, 2012 Am inlocuit _PS_PROD_PIC_DIR CU _PS_TMP_IMG_DIR_. Nu imi mai apare nicio eroare dar nu uploadeaza nici imagine nici zip Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now