Upload

The “upload-service” provides methods for multipart file uploading.

Requirements

client_max_body_size 600M;

Test example

HTML example
<html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>Multipart upload example</title>
 </head>

 <body>
   <form method="post" enctype="multipart/form-data" 
   action="https://dev.shping.com/upload-service/upload">
     <input type="file" name="inputfile"/>
     <input type="submit"/>
   </form>
 </body>
</html>

Upload service is also able to add resolution data to the image, if the content-type header will start from image/ and get_image_meta query string parameter will set to true

Example Response. get_image_meta=true
{
    "meta":
    {
        "height": 48,
        "width": 1147
    },
    "ok": "https://dev-cdn.shping.com/2023/7/7/c1bd1c43-8c03-47fb-a312-f1e43e9b956a.jpeg"
}

results matching ""

    No results matching ""