Multiple file upload library |
[eluser]Unknown[/eluser]
Hi there! I'm trying to learn CodeIgniter, and there is no better way than find something that you need and there isn't any solution that match to your needs. So, in this case i need to upload files through a multiple input file, what, as you know, require an "array name" like Code: name="files[]" Code: multiple="multiple" I don't know if there is any issue about this attribute, let me know if it is. My solution for this way to upload images was based on Romyblack solution... thanks for it! I'm gonna post the modified code only: My view form (Edited for correction, thx Romyblack) Code: <form method="POST" action="" enctype="multipart/form-data"> Modified library Code: public function up($protect = FALSE){ It's working in my project, i hope this will be useful. The usage it's the same that Romyblack explain at the begining of his library. Let me know if there is any kind of issue or style violation.
[eluser]Romyblack[/eluser]
[quote author="Nihilistik" date="1332955885"]Hi there! Let me know if there is any kind of issue or style violation. [/quote] Hi, Nihilistik! You have this in your view file Code: <form method="POST" action="" enctype="multipart/form-data"> But it should be like this according to the w3s documentation Code: <form method="POST" action="" enctype="multipart/form-data"> I really appreciate that this library its useful to other people, please, be free to make any modifications according to your needs,.
[eluser]karlis_i[/eluser]
Modified this great library to enable optional file uploads ( no more "You did not select a file to upload." messages )- What you need to do is wrap upload process in "if" block at line 115: replace Code: #Here we do the upload process with Code: #Here we do the upload process
[eluser]Romyblack[/eluser]
[quote author="karlis_i" date="1333018873"]Modified this great library to enable optional file uploads ( no more "You did not select a file to upload." messages )- What you need to do is wrap upload process in "if" block at line 115: replace Code: #Here we do the upload process with Code: #Here we do the upload process Thanks for your contribution karlis_i
[eluser]HunterJoe1977[/eluser]
[quote author="karlis_i" date="1333018873"]Modified this great library to enable optional file uploads ( no more "You did not select a file to upload." messages )- What you need to do is wrap upload process in "if" block at line 115: replace Code: #Here we do the upload process with Code: #Here we do the upload process This is perfect! Exactly what I needed. Thank you.
[eluser]Romyblack[/eluser]
[quote author="somenet" date="1338711276"]Please Help me to create thumbnail also.[/quote] Hi, right know i'm at work but i've already worked with thumbnails creation, if you want or decide send me a private message with your email so i can send you an example on how to create thumbnails.
[eluser]Unknown[/eluser]
Hi romyblack! thanks for sharing this, i am also new here and trying to learn something everyday. <a href="http://getfacebookfanzs.net/">Get Facebook Fanzs</a>
[eluser]Romyblack[/eluser]
HI, I UPDATED THE LIBRARY SO IT NOW ACCEPTS MULTIDIMENSIOAL AND BIDIMENSIONAL FILES' ARRAY NOW WITH THE UPDATED LIBRARY YOU CAN DO THIS. Code: <form method="POST" action="" enctype="multipart/form-data"> Here's the link http://ellislab.com/forums/viewthread/207911/ Hope you enjoy, special thanks to every person who's using this library. MY_Paypal Library coming soon This library will be the easiest to implement and everyone will be capable to handle payment process in their projects. |
Welcome Guest, Not a member yet? Register Sign In |