• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple file upload library

#1
[eluser]Romyblack[/eluser]
Hi Everyone.

I'm new at this and am a fan of this incredible CodeIgniter Framework,
here i share with you this libraries to upload multiple files, it have been
documented for easy integration.

I hope this is useful for you.

/*UPDATED 6/9/2012
I updated the library according to your need now you can upload with file arrays or normal file inputs as well, hope you enjoy. If you find this library helpful please say thanks and share it with people you know need this.
***********************************
/*UPDATED 21/10/2012
Hi everybody, i modified this library as you requested, first at all.
Special thanks to frankabel and Pent to help me improve this library, ok
so now the problem with the appended texts of error was resolved and now, the array that
the library returns has a new attribute called [FILE_INPUT] which tells you from which input field the file was submitted or selected.

Example Code
Code:
'file_name' => string 'NCF_BLOQUEADOS.txt' (length=18)
'file_type' => string 'text/plain' (length=10)
'file_path' => string 'C:/wamp/www/code/uploads/' (length=25)
'full_path' => string 'C:/wamp/www/code/uploads/NCF_BLOQUEADOS.txt' (length=43)
'raw_name' => string 'NCF_BLOQUEADOS' (length=14)
'orig_name' => string '' (length=0)
'client_name' => string 'NCF_BLOQUEADOS.txt' (length=18)
'file_ext' => string '.txt' (length=4)
'file_size' => float 1199.88
'is_image' => boolean false
'image_width' => string '' (length=0)
'image_height' => string '' (length=0)
'image_type' => string '' (length=0)
'image_size_str' => string '' (length=0)
'error_msg' => string '<p>El archivo que está tratando de subir excede el tamaño permitido</p>' (length=73)
'file_input' => string 'file' (length=4)

I hope you enjoy.

Cordially,
Romyblack.


Quote:Save this with this name (MY_Upload.php)
Click here: DOWNLOAD MY_Upload.php

Quote:PayPal library released Smile see post <here>


Messages In This Thread
Multiple file upload library - by El Forum - 01-06-2012, 05:36 AM
Multiple file upload library - by El Forum - 01-19-2012, 03:56 PM
Multiple file upload library - by El Forum - 01-20-2012, 11:26 AM
Multiple file upload library - by El Forum - 01-20-2012, 03:57 PM
Multiple file upload library - by El Forum - 01-21-2012, 04:18 PM
Multiple file upload library - by El Forum - 01-27-2012, 07:45 PM
Multiple file upload library - by El Forum - 02-06-2012, 08:42 AM
Multiple file upload library - by El Forum - 02-06-2012, 08:59 AM
Multiple file upload library - by El Forum - 02-06-2012, 02:22 PM
Multiple file upload library - by El Forum - 02-07-2012, 06:20 AM
Multiple file upload library - by El Forum - 03-28-2012, 10:31 AM
Multiple file upload library - by El Forum - 03-28-2012, 08:35 PM
Multiple file upload library - by El Forum - 03-29-2012, 04:01 AM
Multiple file upload library - by El Forum - 05-18-2012, 12:15 PM
Multiple file upload library - by El Forum - 05-23-2012, 08:32 AM
Multiple file upload library - by El Forum - 06-03-2012, 01:14 AM
Multiple file upload library - by El Forum - 06-08-2012, 01:01 PM
Multiple file upload library - by El Forum - 06-08-2012, 09:13 PM
Multiple file upload library - by El Forum - 06-09-2012, 04:05 AM
Multiple file upload library - by El Forum - 06-09-2012, 05:28 PM
Multiple file upload library - by El Forum - 06-14-2012, 03:41 PM
Multiple file upload library - by El Forum - 06-14-2012, 07:23 PM
Multiple file upload library - by El Forum - 06-16-2012, 02:51 AM
Multiple file upload library - by El Forum - 08-06-2012, 05:14 AM
Multiple file upload library - by El Forum - 08-06-2012, 05:23 AM
Multiple file upload library - by El Forum - 08-06-2012, 06:30 AM
Multiple file upload library - by El Forum - 08-08-2012, 06:41 AM
Multiple file upload library - by El Forum - 08-08-2012, 06:45 AM
Multiple file upload library - by El Forum - 08-18-2012, 06:45 AM
Multiple file upload library - by El Forum - 08-21-2012, 02:14 PM
Multiple file upload library - by El Forum - 08-21-2012, 11:25 PM
Multiple file upload library - by El Forum - 08-22-2012, 02:45 AM
Multiple file upload library - by El Forum - 10-04-2012, 11:25 PM
Multiple file upload library - by El Forum - 10-13-2012, 10:48 PM
Multiple file upload library - by El Forum - 10-20-2012, 08:33 PM
Multiple file upload library - by El Forum - 10-20-2012, 08:35 PM
Multiple file upload library - by El Forum - 10-20-2012, 09:32 PM
Multiple file upload library - by El Forum - 10-20-2012, 09:34 PM
Multiple file upload library - by El Forum - 10-21-2012, 08:45 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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