CodeIgniter Forums

Full Version: Multiple upload files with difference allowed file type
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

El Forum

[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

El Forum

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

El Forum

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