Upload command

I want to send a command to the Arduino over Internet such that it will then upload a data file (either to my computer) or another hosting site like Dropbox.

What's the best way to do this?

http://www.instructables.com/id/Datalogging-to-Dropbox-with-Arduino-Yun/

Sonnyyu,

Thank you for the link I will probably incorporate this code into my project. However I don't think this is an example of a manual call to transfer data. This code seems to upload automatically.

What I am looking for is a way to send a command over the internet to trigger the upload.

opkg update
opkg install php5-mod-curl
cd /www
wget https://raw.githubusercontent.com/jakajancar/DropboxUploader/master/DropboxUploader.php --no-check-certificate
nano upload.php
<?php
require 'DropboxUploader.php';

$uploader = new DropboxUploader('email@address.com', 'password');
$uploader->upload('path/to/a/file.txt');
?>

send a command (http://ip_address/upload.php) over the internet to trigger the upload.

login dropbox to confirm file is there.

Prerequisites setup PHP/Uhttpd:

http://forum.arduino.cc/index.php?topic=221261.msg1607985#msg1607985

sonnyyu,

I am not able to get the wget command to work as listed above. I get a:

root@TestArduino:/www# wget https://raw.githubusercontent.com/jakajancar/Dropbox
Uploader/master/DropboxUploader.php
wget: not an http or ftp url: https://raw.githubusercontent.com/jakajancar/DropboxUploader/master/DropboxUploader.php

What do you think I am doing wrong?

The opkg update and opkg install* seemed to work fine.

wget https://raw.githubusercontent.com/jakajancar/DropboxUploader/master/DropboxUploader.php --no-check-certificate