How to upload image to another server like amazon etc using php CURL
For upload an image or any file to external server using php curl just refer below code. and change it according to your need. $profile_image_string = ''; if ( isset($_FILES['profile_image']) ) { $tmpfile = $_FILES['profile_image']['tmp_name']; $filename = basename($_FILES['profile_image']['name']); $filetype = $_FILES['profile_image']['type']; $org_image_string =curl_file_create($tmpfile,$filetype,$filename); } $ch = curl_init(); ...