Page 1 of 1
Upload to another server!
Posted: 2020-02-09 03:32
by Gerud Mani
When uploading a file, is there a way to have it saved into a folder that's on another server? I think I need to change the value in "incCommon.php" file as there's a "getUploadDir" function but not quite sure what to put there.
Appreciate your help
Re: Upload to another server!
Posted: 2020-02-09 03:51
by D Oliveira
make the server mail the file to the other server, then put a pipe script on the other server to save it, tough quest, u need change file permissions set, .htaccess file also
Gerud Mani wrote: ↑2020-02-09 03:32
When uploading a file, is there a way to have it saved into a folder that's on another server? I think I need to change the value in "incCommon.php" file as there's a "getUploadDir" function but not quite sure what to put there.
Appreciate your help
Re: Upload to another server!
Posted: 2020-02-09 04:23
by Gerud Mani
so this function won't help?
Code: Select all
function getUploadDir($dir){
global $Translation;
if($dir==""){
$dir=$Translation['ImageFolder'];
}
if(substr($dir, -1)!="/"){
$dir.="/";
}
return $dir;
}
Re: Upload to another server!
Posted: 2020-02-09 06:16
by D Oliveira
no man, linking two separate servers is no easy task at all, nor it can be accomplished without a secure approach, i recommend u get in touch with an experienced developer
Gerud Mani wrote: ↑2020-02-09 04:23
so this function won't help?
Code: Select all
function getUploadDir($dir){
global $Translation;
if($dir==""){
$dir=$Translation['ImageFolder'];
}
if(substr($dir, -1)!="/"){
$dir.="/";
}
return $dir;
}