CodeIgniter Forums
Multiple upload files with difference allowed file type - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Multiple upload files with difference allowed file type (/thread-22060.html)



Multiple upload files with difference allowed file type - El Forum - 08-28-2009

[eluser]budbud[/eluser]
hello.,

I'm newbie here.,
this is my first post^^

how are u doing all???
i hope u are good.

ok, let start with my problem in use codeigniter framework, where i want to upload multiple file in same form but with different allowed type (image n pdf).

how can i do that??
i already search how to solve this problem but i cann't find the best answer.

please anyone help me!
thanks before...


Multiple upload files with difference allowed file type - El Forum - 09-23-2009

[eluser]imn.codeartist[/eluser]
//Image Upload Config
$config['upload_path'] = '/path/to/upload/';
$config['allowed_types'] = 'gif|jpg|png|xsl|doc|txt|odb|odt|pdf|exe|ppt';
$config['max_size'] = '5120';
$config['remove_spaces'] = true;

This might help you for different file types


Multiple upload files with difference allowed file type - El Forum - 09-24-2009

[eluser]budbud[/eluser]
After almost 1 month I was waiting for reply, finally...

thanks to dixcoder for your respon.

here I give the details what I mean :

I want have two upload field where each upload field have diferrent rules.

example:

Image : [input field]
Pdf : [input field]

how could I do this??

thanks for your responses.


Multiple upload files with difference allowed file type - El Forum - 06-08-2010

[eluser]alvk4r[/eluser]
I've solved your problem. See my post in http://ellislab.com/forums/viewthread/156352/