Feedback

About Designerfoo and Me!

I am Manoj Sachwani, a webmaster, wannabe illustrator, designer, developer, amongst other things. I have over 14 years of experience, developing, designing and deploying websites. I am geeky, hairy and and I love what I do.

I stumbled & bought this domain - Designerfoo.com - because I thought it would be a "cool" domain to have, as time went on, I realized that I want to become - "Designerfoo" - and grow my knowledge in design, illustration, web design and web development.

I am webmaster, I design and develop websites with an edge. How may I help you?
Contact   -   @designerfoo   -   Facebook
Who is

Howto: CodeIgniter + Uploadify

Comment(s)

I had a requirement where, I needed to fuse uploadify and codeigniter to gether, so I started looking at these tutorials online. I found some to be very complex and gave up on trying to use these to fuse both together. Here’s a video how-to for using Uplodify with your CodeIgniter based website/blog.

Download Sourecode

Codigniter+Uploadify

Howto: CodeIgniter + Uploadify.




PS: The source code contains, complete CI site with uploadify working. If you have any questions, comments do let me know via the comment box down! Thanks.

Download Sourecode
Post Rating 3.00 out of 5


Subscrive via feedburner rss

Subscrive via feedburner email
19 Responses to “Howto: CodeIgniter + Uploadify”
Comment History Slider
    August 8, 2010 at 9:26 pm
    Author: vipercat

    I like this tut!

    Thnx for the effort!

    The script works fine, but doesn’t upload the file. And it’s not displaying some error.

    Firebug (about the POST action):
    Unable to move ‘/var/spool/php/php21L6Ti’ to ‘/var/services/web/uploads/06102009026.jpg’

    I don’t know where to look for.

    Regards

      September 2, 2010 at 7:44 pm
      Author: Designerfoo

      The directory you are trying to upload to does not exists OR there’s a problem with perms.

    August 5, 2010 at 6:58 pm
    Author: Alf

    Thanks for this tutorial!

    I am having just one issue: The progress-bar is not showing. The path for the CSS and JS’s are good. The files are uploading and the percent is running but the horizontal line and the gray box no. I’ll appreciate any help.

      August 5, 2010 at 8:49 pm
      Author: Designerfoo

      Can you mail me the link? So I can check what’s up?

    July 20, 2010 at 7:36 pm
    Author: Trutz

    For all who get the “Trying to get property of non-object … ” error and use a CI installation on your local computer, e.g. with XAMPP:

    Just replace the following line in the views file welcome_message.php

    folder: ’system\application\uploads’,

    with this one

    folder: ‘/your/path/to-your-upload-folder’,

    This worked for me!

    Great tutorial!

    Regards!

      August 5, 2010 at 8:48 pm
      Author: Designerfoo

      Thanks TRUTZ! :)

    July 18, 2010 at 8:52 am
    Author: Althalos

    I wonder if there’s a method to be able to get access to the CI libraries and models inside of uploadify.php, I need to write the uploaded files to the database and preferably also do some image cropping/scaling with the CI image class.

    Thanks for a great article though, the uploadify part worked flawlessly for me!

      July 18, 2010 at 9:16 am
      Author: Althalos

      No wait… I am terribly stupid. Really. I suppose the best way to write the info to the database and do operations would be to put that code in the uploadify method that is inside the controller and outputs back the Ajax results.

        July 20, 2010 at 7:27 am
        Author: Designerfoo

        Yup, that is right, you can do that without the ajax also if you want do to so, from within the callback itself. Hope this helps!

    July 8, 2010 at 7:38 pm

    Hey,

    Ive been trying to get your source files to work, but I keep getting this error;

    “Trying to get property of non-object
    Filename: views/uploadify.php

    Line Number: 3″

    … and line 4, 5, …

    basically it seems he’s not getting the json echo’s, but he is trying to read them.

    But I dont know how to fix this, any ideas?

      July 13, 2010 at 5:25 am
      Author: Designerfoo

      Ok, the thing is that the there should uploadify.php present in the views directory, which currently It can’t find. Check your config.php for the base url.

        July 14, 2010 at 8:18 am
        Author: light_tuner

        Thanks a lot for great tutorial and files.

        I am still getting the same error than MR-H, even if I have the right path and file in the right place..

        Isn’t it a problem with Json object?

        When I use print_r($data['json']) in the controller I get ‘1′ as output value

        Any help would be appreciated. Keep on the good work!

        July 14, 2010 at 9:23 am
        Author: light_tuner

        Sorry for the troubles; I have replaced the whole uploadify folder in CI system/application and it now works like a charm.

        (for those interested, I read in CI forum it might be an issue with uploadify.swf and the way it passes data back using ’scriptURL’ httpRequest variable..)

        Thanks again!

    May 16, 2010 at 3:07 pm
    Author: Mr-H

    hi thank you for this
    fuse ci with uploadify is simple the trick is how to handle the onComplete fontion.
    but i have a probléme that when i upload a file i lost session
    i dont know why? and if i look in ci session (ci_session) i found that the table content 3 records!!
    any idea?

      May 22, 2010 at 9:43 am
      Author: Designerfoo

      THe lost session problem may be because of a lot of things, can you mail me something to look at via email?

    May 6, 2010 at 6:58 pm
    Author: jozan

    I think you need a better mic. There is too much noise in audio and your voice is hardly audible time to time.

    Anyway, thanks for tut. :)

      May 22, 2010 at 9:44 am
      Author: Designerfoo

      Hi Jozan,

      I apologize for the bad audio, I will get a better mic and be much more clear with oncoming tuts! Hope this helped!

    May 3, 2010 at 7:25 am
    Author: Fred Lin

    Kudos to you. You have just changed alot of CI designer/developers lives. ;)

      May 6, 2010 at 6:19 am
      Author: Designerfoo

      Hey Fred,

      Thanks, I had added the complete CI install fused with CodeIgniter already to give you and others a head start, hope that helps!



Leave a reply :)

Name:

(required)

Mail (will not be published):

(required)

Website:

Comment:


Subscribe

Deliverables

  • Website design/interface layout
  • CMS Theme-ing
  • Website/webapp/RIA Development
  • Website redesign
  • Webmaster services
  • Consultations on marketing/branding/etc over Coffee/beer/lunch/dinner

My Value Proposition

  • Fast turn around times.
  • Free consultations on marketing and branding
  • Affordable services
  • Around the clock support.
  • An experience of over 14 years with providing these services.

My services for barter.

  • If you think you might have something that I would use/want, I am ready to provide my services for $1.00 and a barter!

Friends

A thanks of gratitude to these guys. They are just plain awesome!

Eventify – Simple Events

NextGEN Resize Wordpress Plugin

Categories

Recent Posts

Looking for something?

Thanks to Subscribers

Feedburner : 10


Twitter : 2395

Thank you for taking the time out.

Your Email (required)

Your Email (required)

Your Feedback

What to do you think of Eventify - Simple Events?

View Results

Loading ... Loading ...

What do you think about the NextGEN Resize Plugin?

View Results

Loading ... Loading ...

What do you think about the site design/UI/IA?

View Results

Loading ... Loading ...

  X Close Feedback.