CodeIgniter Forums
can i upload picture with destination folder outside CI instalation ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: can i upload picture with destination folder outside CI instalation ? (/thread-53424.html)



can i upload picture with destination folder outside CI instalation ? - El Forum - 07-23-2012

[eluser]Mario "St.Peter" Valentino[/eluser]
i wanna ask can i upload picture but the folder destination upload is outside CI instalation.
usually folder destination in inside CI installation like this
Code:
$config['upload_path'] = './folder_destination';

can i declare upload path outside CI installation.
i use windows xp with xampp instalation
so path will be like this
Code:
C:/xampp/htdocs/app_name/



can i upload picture with destination folder outside CI instalation ? - El Forum - 07-23-2012

[eluser]Aken[/eluser]
Yes, as long as it's on the same server and the folder has write permissions, you can put it anywhere you want.


can i upload picture with destination folder outside CI instalation ? - El Forum - 07-23-2012

[eluser]Mario "St.Peter" Valentino[/eluser]
is will be this ?
Code:
//this where app name folder
C:/xampp/htdocs/my_apps/

//this where i save picture
C:/picture_destination/

so upload config in library will be like this
$config['upload_path'] = 'C:/picture_destination';



can i upload picture with destination folder outside CI instalation ? - El Forum - 07-23-2012

[eluser]Aken[/eluser]
No. Your computer and XAMPP's web server are two different things. It needs to be something inside C:/xampp/htdocs/


can i upload picture with destination folder outside CI instalation ? - El Forum - 07-23-2012

[eluser]Mario "St.Peter" Valentino[/eluser]
oh okay thanks friend for helping me