Replies: 2 comments 2 replies
-
I think these helpers should be in a separate package since and try to keep this library as close to the amazon docs as possible. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@matt748 do you try this var imageHash = EasyMD5.GetMD5HashFromFile(@"C:\DataSave\tmp\amazon.png");
var fileExtension = "png";
var uploadRequest = new ParameterCreateUploadDestinationForResource
{
contentMD5 = imageHash,
resource = "aplus/2020-11-01/contentDocuments",
contentType = "image/" + fileExtension
};
var uploadResponse = await amazonConnection.Upload.CreateUploadDestinationForResourceAsync(uploadRequest); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great if there was a helper method to upload a document using the output of the Upload.CreateUploadDestinationForResource method. I'm currently using a raw RestSharp request but this is proving problematic and I can't get it to work just yet!
Related to previous issue #418
Beta Was this translation helpful? Give feedback.
All reactions