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

#21
[eluser]Christoph Rumpel[/eluser]
Code:
if ( ! $this->image_lib->adaptive_resize())
            {
                    echo $this->image_lib->display_errors();
            }
            else
            {
                //$this->load->view('image/upload_success_v', $data);
                $data['title'] = 'Upload';
                $data['view'] = 'image/upload_success_v';
                $this->load->view('template',$data);
            }

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

#22
[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

#23
[eluser]Christoph Rumpel[/eluser]
Hi,

i think this is because of the extension library i use. Adaptive_resize is a method from this library.
MY Image lib Extension
http://codeigniter.com/wiki/MY_Image_lib_Extension/

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

I hope this fixes your problem.

#24
[eluser]Mohammad Rashidi[/eluser]
SOLVED!

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

#25
[eluser]InsiteFX[/eluser]
If you have a library and you are calling a methos in another library then you need to use the CI Super Object!
Code:
$CI =& get_instance();

$CI->call_method();

InsiteFX

#26
[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=(

#27
[eluser]InsiteFX[/eluser]
There is a jQuery multiple upload do a search for jQuery Multiple Uploads.

InsiteFX

#28
[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.

#29
[eluser]InsiteFX[/eluser]
This one:
jQuery Multiple File Upload Plugin

InsiteFX

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

./ up one directory!

InsiteFX[/quote]

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.