The implementation for this feature is as follows:
- An API call is made to */billofmaterials/set_image_begin
- This call only initiates the process. We will return an upload URL that can then be used to upload the image. After uploading the image, you must then call set_image_finish API to complete this process.
- This call requires a .jpg or .jpeg, etc.
- You can find information on how to submit this call in the API Documentation in CloudDispatch.
- A response is returned from this initial API call with the upload URL.
- A signed PUT URL is used to upload the image file. This URL will expire 10 minutes after signed.
- The PUT URL along with the selection of the file image, is used to upload the image. Include the contents of the image as the body of the request to the PUT URL provided by set_image_begin.
- In Postman, this is done by selecting 'Body', then 'Binary' and choosing the file name from Step 1.
- A final call is made to *billofmaterials/set_image_finish/ using the Site and part number.
- You can find information on how to submit this call in the API Documentation in CloudDispatch.
This must be done for each new image uploaded.
Note: Must limit the file size of the uploaded file. Recommended max file size: 2MB
-
-
A 12 Megapixel JPEG image exported at 90% quality is ~2MB
-
A 12 Megapixel JPEG image exported at 80% quality is ~1.1MB
-
A 12 Megapixel JPEG image exported at 70% quality is ~755KB
-
Comments
0 comments
Please sign in to leave a comment.