secondo me, l'errore sta qui
curl_setopt($ch, CURLOPT_POSTFIELDS, $args1)
sei sicuro che la chiave "file" di $args1 contenga realmente i dati che ti aspetti?
secondo me, l'errore sta qui
curl_setopt($ch, CURLOPT_POSTFIELDS, $args1)
sei sicuro che la chiave "file" di $args1 contenga realmente i dati che ti aspetti?