Multiple upload files with difference allowed file type |
[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...
[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
[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.
[eluser]alvk4r[/eluser]
I've solved your problem. See my post in http://ellislab.com/forums/viewthread/156352/ |
Welcome Guest, Not a member yet? Register Sign In |