File field improvements
Gosling Cools
Junior Member
Posts: 20
pred 9 rokmi 8 mesiacmi - pred 9 rokmi 8 mesiacmi #698
od Gosling Cools
File field improvements bolo vytvorené Gosling Cools
Make file extension lower case (for all those .JPG files!)
Add the second line to your table/your-item.php
A current file might exist, if so delete it. Else you will end up with lots of files that don't get deleted.
After this line:insert:Hope this is of any use
Add the second line to your table/your-item.php
$filename[0] = preg_replace("/[^A-Za-z0-9]/i", "-", $filename[0]);
$filename[1] = strtolower($filename[1]);
A current file might exist, if so delete it. Else you will end up with lots of files that don't get deleted.
After this line:
if(!JFile::exists($uploadPath)){
if($array['id'] != 0)
{
// do a db query on this current item to get the current filename
// delete this file from the server
}
Posledný krát upravené:pred 9 rokmi 8 mesiacmi Gosling Cools
Nasledujúci užívateľ(ia) povedali ďakujem: Andres Maeso, Juanjo vazquez real, RIP Graphics
Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.
Andres Maeso
Platinum Member
Posts: 338
pred 9 rokmi 8 mesiacmi #704
od Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Táto e-mailová adresa je chránená pred spamovacími robotmi. Na jej zobrazenie potrebujete mať nainštalovaný JavaScript.
Odpoveď od Andres Maeso na tému File field improvements
Thank you Gosling!
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Táto e-mailová adresa je chránená pred spamovacími robotmi. Na jej zobrazenie potrebujete mať nainštalovaný JavaScript.
Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.
logic
New Member
Posts: 2
pred 8 rokmi 3 mesiacmi #1401
od logic
Odpoveď od logic na tému File field improvements
i am facing following error when i try to save file filed
Error
Save failed with the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select FROM #__pdfperfectuploader_ WHERE id = 0' at line 1 SQL=SELECT select FROM #__pdfperfectuploader_ WHERE id = 0
Error
Save failed with the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select FROM #__pdfperfectuploader_ WHERE id = 0' at line 1 SQL=SELECT select FROM #__pdfperfectuploader_ WHERE id = 0
Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.
Andres Maeso
Platinum Member
Posts: 338
pred 8 rokmi 3 mesiacmi #1402
od Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Táto e-mailová adresa je chránená pred spamovacími robotmi. Na jej zobrazenie potrebujete mať nainštalovaný JavaScript.
Odpoveď od Andres Maeso na tému File field improvements
Hi
We can't reproduce that issue in our local servers.
If it keeps happening, please send us a bug report using our contact form with more details: www.component-creator.com/en/help/contact
Regards,
Andrés.
We can't reproduce that issue in our local servers.
If it keeps happening, please send us a bug report using our contact form with more details: www.component-creator.com/en/help/contact
Regards,
Andrés.
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Táto e-mailová adresa je chránená pred spamovacími robotmi. Na jej zobrazenie potrebujete mať nainštalovaný JavaScript.
Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.
Čas vytvorenia stránky: 0.056 sekúnd