Account


Earned badges

Achievement: Latest Unlocked

Topic Started

This user has not created any forum posts.

Replies Created

Reply to: Upload a new document through multipart/form-data using Postman

0 votes
Hi There, I have he same issue, but when I tried the code above can't get it working(maybe it's on the API side). I received 504 gateway timeout. Here's the API documentation link Here's the code generated from postman: $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.actionsteplabs.com/api/rest/files/?part_count=2&part_number=1", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"[object Object]\"\r\nContent-Type: false\r\n\r\n\r\n-----011000010111000001101001--", CURLOPT_HTTPHEADER => array( "accept: application/vnd.api+json", "authorization: Bearer (access_token), "content-length: 5242880", "content-type: multipart/form-data; boundary=---011000010111000001101001" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }

Subscriptions

Topics Replies Freshness Views Users
Hello! I seem to be getting a 500 when I try to upload a new document.
12 7 years 6 months ago 4,209
Profile picture for user harishaidary

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.