Upload to another server!

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
Gerud Mani
Posts: 9
Joined: 2016-08-22 04:18

Upload to another server!

Post by Gerud Mani » 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

User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

Re: Upload to another server!

Post by D Oliveira » 2020-02-09 03:51

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

Gerud Mani
Posts: 9
Joined: 2016-08-22 04:18

Re: Upload to another server!

Post by Gerud Mani » 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;
	}

User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

Re: Upload to another server!

Post by D Oliveira » 2020-02-09 06:16

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;
	}

Post Reply