File field improvements
Gosling Cools
Bakır Üye
Posts: 20
9 yıl 8 ay önce - 9 yıl 8 ay önce #698
Yazan: Gosling Cools
File field improvements, Gosling Cools tarafından oluşturuldu
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
}
Son Düzenleme: 9 yıl 8 ay önce Düzenleyen:Gosling Cools
Şu kullanıcı(lar) Teşekkür etti: Andres Maeso, Juanjo vazquez real, RIP Graphics
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Andres Maeso
Platin Üye
Posts: 338
9 yıl 8 ay önce #704
Yazan: Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Andres Maeso tarafından File field improvements konusunda yanıtlandı
Thank you Gosling!
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
logic
Yeni Üye
Posts: 2
8 yıl 3 ay önce #1401
Yazan: logic
logic tarafından File field improvements konusunda yanıtlandı
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
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Andres Maeso
Platin Üye
Posts: 338
8 yıl 3 ay önce #1402
Yazan: Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Andres Maeso tarafından File field improvements konusunda yanıtlandı
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.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Sayfa oluşturma süresi: 0.052 saniye