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
Upload to another server!
- D Oliveira
- AppGini Super Hero
- Posts: 348
- Joined: 2018-03-04 09:30
- Location: David
Re: Upload to another server!
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:32When 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
-
- Posts: 9
- Joined: 2016-08-22 04:18
Re: Upload to another server!
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;
}
- D Oliveira
- AppGini Super Hero
- Posts: 348
- Joined: 2018-03-04 09:30
- Location: David
Re: Upload to another server!
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:23so 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; }