Jump to content
UBot Underground

Ftp Upload From Url Without Downloading File Locally?


Recommended Posts

I think, that title, pretty much , says it all.

 

Is there any way to avoid slow internet connection and Upload file from URL into a server without hassle of downloading it locally into my own computer.

I have Aymen http post plugin, FTP plugin also, but I dont really see it happening with my programming skills.

 

If you guy have any suggestion, I am all ears.

 

Little off topic:

 

I recently discovered linux SCP command by moving data from one server to another - amazing!!!

 

scp -r root@SERVERIP:/home/file.zip root@ANOTHERSERVERIP:/home/

 

yay!!!!

Link to post
Share on other sites

The easiest way to do so is to create server script to download remote content. For example you can call your php file with url as parameter (navigate to http://www.yourdomain.com/getremotefile.php?url=http://www.remotesite.com/video.avi')

 

<?php 

$file = $_GET["url"];

// read the file from remote location
$current = file_get_contents($file);

// create new file name
$name = "path/to/folder/newname.avi";

// Write the contents back to the file
file_put_contents($file, $current);
Link to post
Share on other sites

Thanks. You know what I did? Bizzare...

 

I installed dropbox on my centos VPS:

https://www.dropbox.com/install?os=lnx

 

now I can upload files from URL into a dropbox:

 

https://blogs.dropbox.com/developers/2015/06/programmatically-saving-a-url-to-dropbox/

 

Easy with http post plugin

 

Than, I am using ssh plugin to move folders /files/ around, on my server.

 

YAY!!!!!! :D

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...