image host uploading api help [PHP]

Status
Not open for further replies.

sohom

Supreme Member
May 26, 2013
1,361
646
Hello
I am in the need of knowledgeable person who worked with image hosting kinda sites, good in PHP

See this picture
X0D2D7d


main work is to figure out what will be the POST string to get the image uploaded successfully there

need More details about site,etc ?
just PM me

Only looking for good iTrade Score users or jr.vip
 
A quick glance at your JSON string seems to indicate the form was not submitted with the correct ENCTYPE attribute. POST submissions that include files must have the enctype in the <form> as in this example:

<form action="demo_post_enctype.asp"
method="post" enctype="multipart/form-data">

I would send a link to the documentation for HTML multipart forms, but I can't post links here. If you google search "html form multipart" and have a look at the w3schools result, it will explain a bit more about this attribute.

Hope that helps.
 
I assume you're using CURL in PHP to upload that picture. In that case you should set the CURLOPT_HTTPHEADER option in the way similar to this:

CURLOPT_HTTPHEADER => array("Content-Type:multipart/form-data");

Then it will be a multipart request, as your image hosting site expects.
 
Status
Not open for further replies.
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock