• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"The upload path does not appear to be valid" (PULLING MY HAIR OUT !!!!) [SOLVED]

[eluser]Christoph Rumpel[/eluser]
if ( ! $this->image_lib->adaptive_resize())
                    echo $this->image_lib->display_errors();
                //$this->load->view('image/upload_success_v', $data);
                $data['title'] = 'Upload';
                $data['view'] = 'image/upload_success_v';

Did u try to put out some errors messages like me above?

[eluser]Mohammad Rashidi[/eluser]
gd2 is enabled, but i faced this error:
Fatal error: Call to undefined method CI_Image_lib::adaptive_resize() in G:\wamp\www\application\controllers\registration.php on line 304

[eluser]Christoph Rumpel[/eluser]

i think this is because of the extension library i use. Adaptive_resize is a method from this library.
MY Image lib Extension

With this library you get more settings for resizing. If youre not using, you need to call the default methode:

I hope this fixes your problem.

[eluser]Mohammad Rashidi[/eluser]

i was loading image_lib before & after the configurations. first one without config file and the second one with that Big Grin

If you have a library and you are calling a methos in another library then you need to use the CI Super Object!
$CI =& get_instance();



[eluser]Christoph Rumpel[/eluser]

I am struggling with multiple upload of images for hours!=( Every documentation i find in the Internet does not work and it seems like nobody solved it yet=(

There is a jQuery multiple upload do a search for jQuery Multiple Uploads.


[eluser]Christoph Rumpel[/eluser]
Do u mean Uploadify? Did u test it?
It seems qutite difficult implementing it with codeigniter without documentation.
Additionally i cant understand why it is that difficult to upload some files within one form. CI must know that many people use it. Probably it isnt that difficult, but i just cant get how it works. I just can upload the first onput file of my form.

This one:
jQuery Multiple File Upload Plugin


[quote author="InsiteFX" date="1304786533"]Why does everyone miss the period?
$config['upload_path'] = './uploads/';

./ up one directory!


Well, the period fixed it for me finally. However, I did need to use $this->upload->initialize($config); too to get it to work properly.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

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