CodeIgniter Forums
Upload vcf - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Upload vcf (/showthread.php?tid=35505)



Upload vcf - El Forum - 11-01-2010

[eluser]Fireclave[/eluser]
hi, i try to upload a ical or vcf file, but this is not working.

I addad text/vcf in mimes.php and its not working.

And i'm using the newest firefox for xp


Upload vcf - El Forum - 11-01-2010

[eluser]Fireclave[/eluser]
Any ideas ?


Upload vcf - El Forum - 11-02-2010

[eluser]Fireclave[/eluser]
The mime type is text/x-vcard, but his is not working. should i do this entry place at the beginning or end ?

(Error: Wrong Filetype)

P.s.

I've found this mime types

'text/x-vcard',
'application/vcard',
'text/anytext',
'text/directory',
'application/x-versit',
'text/x-versit',
'text/x-vcalendar'

Anyone a idea ?


Upload vcf - El Forum - 11-02-2010

[eluser]Fireclave[/eluser]
i have solve this problem by adding

application/octet-stream

in mimes.php

and change in upload.php (library)
the line 579 to

if (in_array(str_replace("\"", '', $this->file_type), $mime, TRUE))