PHP:
$file = $_FILES['media']; if (!in_array($file['type'], array('image/png','image/jpeg','image/gif'))) { [/B] echo 'Not a valid file type, please upload PNG, JPEG or GIF images only.'; exit; } $postfields = array(); $postfields['username'] = $username; $postfields['password'] = $password; $postfields['media'] = "@$file['tmp_name']"; $twitter_url = 'http://twitpic.com/api/upload'; [B] $curl = curl_init()...

Curl ile Twitpic sitesine resim upload etmek