Forum Moderators: coopster

Message Too Old, No Replies

How to remote upload unique download links ?

         

kingston 123

12:03 pm on Jan 13, 2017 (gmt 0)

5+ Year Member



Most file hosting sites won't allow you to share direct download links.
This links won't even work in remote upload of any file hosting sites.

I am so ready with CURL installed on my windows.

if you users give me codes then I will remote upload the links.

Actual my aim: Transfer my files from pcloud to uptobox using remote upload feature(but pcloud links are unique links)

keyplyr

12:20 pm on Jan 13, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi kingston 123 and welcome to WebmasterWorld [webmasterworld.com]

Have you asked at uptobox if there is a remote file transfer tool?

I wouldn't think it possible to use a link that supports both servers. It would need to be a more advance transfer protocol.

kingston 123

12:37 pm on Jan 13, 2017 (gmt 0)

5+ Year Member



Yes uptobox does have remote url upload, but main problem pcloud download links wont work in any remote url upload of any file hosting sites. As I already mentioned in the thread.

I am thinking They are hiding the real URL in download link.

keyplyr

12:46 pm on Jan 13, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



So don't use the link. Create a folder to download the files to & upload the files from there.

kingston 123

12:51 pm on Jan 13, 2017 (gmt 0)

5+ Year Member



Are you trying to say download the file to my pc & then upload to uptobox?

my upload speed is 50kbps & file size is 1 GB.
that is why I choose remote url upload.

keyplyr

12:57 pm on Jan 13, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Well unless pcloud offers another method of file access, that would be my only idea.

kingston 123

1:00 pm on Jan 13, 2017 (gmt 0)

5+ Year Member



what about curl parsing the pcloud download links ?

keyplyr

1:02 pm on Jan 13, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Where would that code reside?

kingston 123

2:50 am on Jan 14, 2017 (gmt 0)

5+ Year Member



Just tell Is my question & this question here(http://unix.stackexchange.com/questions/89282/how-to-figure-out-where-a-link-gets-redirected ) are same ?

phparion

7:45 pm on Jan 14, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



you should be able to do it with cURL provided with php.ini allows you to open file remotely,

$url = "complete/url/to/your/file";
$ch = curl_init ($url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
$file=curl_exec($ch);
curl_close ($ch);
if(file_exists($saveto)){
unlink($saveto);
}
$fp = fopen($saveto,'x');
fwrite($fp, $file);
fclose($fp);