Sei grande!
Il problema era proprio quello.
EDIT: Sto cercando di fare l'upload nel server di divshare, ecco il codice php
Codice PHP:
<?php
$my_api_key = "xxxxxxxxxxxx";
$my_secret = "xxxxxxxxxxxxx";
require 'divshare_lib_php4.php'; // replace this with the actual path to your library
$ds = new divshare_api($my_api_key, $my_secret);
$email = "xxxxxxxxxxxxx";
$password = "xxxxxxxxxxxx";
$api_session_key = $ds->login($email, $password);
if ($api_session_key) {
echo "<p>Sei loggato</p>";
$upload_ticket = $ds->get_upload_ticket(999999);
echo "<p>Ticket: $upload_ticket</p>";
?>
<form action="http://upload.divshare.com/api/upload" method="post" enctype="multipart/form-data">
<input type="hidden" name="upload_ticket" value="<?php echo $upload_ticket; ?>" />
<input type="hidden" name="response_url" value="http://www.prova1919.altervista.org/divshare/upload.php" />
<input type="file" name="file1" />
<input type="text" name="file1" maxlength="255" />
<!-- Works for up to five files, named "file1" through "file5" -->
<input type="text" name="email_to" maxlength="255" />
<!-- Separate multiple e-mails with commas -->
<input type="submit" value="Upload" />
</form>
<?php
} else {
// There was a login error
echo "<p>Non sei loggato</p>";
}
?>
Non riesco a inviare nulla e ottengo il messaggio di errore "error=true&description=Sorry%2C+your+upload+ticke t+is+invalid.error=true&description=Sorry%2C+your+ upload+ticket+is+invalid."
Qualcuno ha mai provato a fare l'upload con un modulo nel suo sito?