I have tried by typing the code putFile.Key in the insert database field and this is also not working. Do I need to write a different code for this to work correctly? Any assistance in resolving this issue is greatly appreciated.
What do you want back from the putfile, it doesn’t return anything useful. The Key is not returned, you should already have the Key since it is also required as an option for the putfile action.
I have setup the Key with this format folder/clientID/filename. I am trying to save this url / path along with filename in the DB, so that this path can be used to display photos in the Client UI.
Do I need to type the same code as for the ‘Key’ above in the insert query as well?
Seems that the .NET SDK is returning less then the PHP/NodeJS api. In the PHP SDK documentation I see that it returns the ObjectURL, in the .NET SDK this is missing. I haven’t returned anything in .NET since I didn’t see any useful in the response object. See https://docs.aws.amazon.com/sdkfornet1/latest/apidocs/html/T_Amazon_S3_Model_PutObjectResponse.htm. In .NET I cannot return the response object directly, I have to convert each property I want to return to a JSON property/value.