Multiple upload files with difference allowed file type


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...

//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

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.


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

how could I do this??

thanks for your responses.

I've solved your problem. See my post in

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.