Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $file = fopen($video, 'r');
- $read = fread($file, $video_size);
- curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'POST');
- curl_setopt($curl, CURLOPT_POSTFIELDS, "video_file_chunk=$read");
- curl_setopt($curl, CURLOPT_HTTPHEADER, [
- 'Content-Type:multipart/form-data'
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement