Welcome Guest, Not a member yet? Register   Sign In
Yet another upload_path problem
#1

[eluser]PoWah[/eluser]
I have upload_path defined
Code:
$config['upload_path'] = realpath(BASEPATH.'../static/images/katalogas/kategorijos/');
$this->load->library('upload', $config);

when I echo it I see "C:\wamp\www\ptvs\static\images\katalogas\kategorijos" and it is correct! Why I get an error "The upload path does not appear to be valid." ? I'm now coding on WAMP server under Windows.. tried to search the forum and I saw tons of similar posts but ... :/
#2

[eluser]gunter[/eluser]
using realpath() isn´t necessary because the library already uses the realpath()...
and BASEPATH isn´t necessary too, because you are already in the base folder...

so, if you upload folder is one level over (?correct english word?) the base folder (with the index.php) then just use this...
"../static/images/katalogas/kategorijos/'
path can be described absolute or relative says the userguide...
#3

[eluser]Référencement Google[/eluser]
I solved the same kind of problem just doing:

Code:
$config['upload_path'] = realpath('uploads');

While uploads is a dir at the root of the website: /uploads
#4

[eluser]Majd Taby[/eluser]
not to beat a dead horse but, did you set your permissions?
#5

[eluser]Unknown[/eluser]
[quote author="elitemedia" date="1192422797"]I solved the same kind of problem just doing:

Code:
$config['upload_path'] = realpath('uploads');

While uploads is a dir at the root of the website: /uploads[/quote]

For those looking for further help, this solved my problem.

Thanks!
#6

[eluser]PoWah[/eluser]
it doesnt solved my problem :/ maybe there is something related to that fact that I'm using modular separation ?
#7

[eluser]Yash[/eluser]
Old topic but still helps me...

Thank you

[quote author="Too Pixel" date="1192422797"]I solved the same kind of problem just doing:

Code:
$config['upload_path'] = realpath('uploads');

While uploads is a dir at the root of the website: /uploads[/quote]




Theme © iAndrew 2016 - Forum software by © MyBB