Welcome Guest, Not a member yet? Register   Sign In
file upload controller
#11

[eluser]stikoo[/eluser]
[quote author="flaky" date="1266092116"]instead of
Code:
$config[‘upload_path’] = $baseLoc.“assets/Lessons/”;

do

Code:
$config[‘upload_path’] = “./assets/Lessons/”;
[/quote]

I was having the same problem, and this fixed it! However I don't understand why this worked!

I was using:

Code:
$config[‘upload_path’] = base_url().“img/uploads/”;

This was returning the error “The upload path does not appear to be valid.”

I echoed out $config[‘upload_path’] and it appeared to be the correct folder location

When I echoed out your version :

Code:
$config[‘upload_path’] = “./img/uploads/”;

it worked and returned: ./img/upload/

but surely this is an absolute path from the server root?

So I'm confused as to why my original didn't work and this does, thanks!




Theme © iAndrew 2016 - Forum software by © MyBB