What is the service name which gets called when we use document uploader. because we don’t create that through vconnect.
Service Name: DMS_FETCH_MEDIA_OBJECT_FILTER
Please explain. For eg expected params and response
@radhika this service is to fetch the documents after we have already uploaded it. i’m searching for the service which uploads the document to the bucket
i’m searching for the service which uploads the document to the bucket when we use the document uploader element. we only have to configure the fetch, delete, and fetch url service on Vconnect and on the element and the service for the DMS upload runs automatically. So i want to find the service on the Vlogs to find what document bundle id is being used.
@Abhinav_mehta As per my knowledge, there is no service present
You have to just pass parameter like object pri key 1 : Doc_id
But how the document is been uploaded to the AWS bucket without any service running
Upload Media API is used to upload different types of media data via Vahana Document Manager. It accepts the multipart request & media data object in request.
Method
POST with Form-Data
Form Data Request
As mentioned above also, this is Form Data based Post request. So below two parameters are expected in this request post body:
files: Multipart request
for
multiple files.
mediaDataObjects:
[
{
"id"
:
"himanshimanchandaaaaaaaaaaa"
,
"formId"
:
"formId"
,
"controlId"
:
"controlId"
,
"fileDefId"
:
"fileDefId"
,
"docId"
:
"docId"
,
"expiryTime"
:
""
"docType"
:
"docType"
,
"docSubType"
:
"docSubType"
,
"docBundleId"
:
"docBundleId"
,
"mediaDetails"
: {
"fileType"
:
""
,
"fileName"
:
"fileName"
,
"fileCaption"
:
"fileCaption"
,
"fileMimeType"
:
"fileMimeType"
},
"objectPriKey1"
:
"MKALERTBQEDE"
,
"objectPriKey2"
:
"MN"
,
"objectPriKey3"
:
""
,
"deviceCreateTimestamp"
:
"deviceCreateTimestamp"
,
"deviceModifyTimestamp"
:
"deviceModifyTimestamp"
,
"customMetadata"
: {},
"keepDeletedImage"
:
"keepDeletedImage"
,
"recSyncStatus"
:
""
,
"recSyncTimestamp"
:
""
,
"deactivatedBy"
:
""
,
"documentError"
:
""
,
"status"
:
"ACTIVE"
,
"text1"
:
""
,
"text2"
:
""
,
"text3"
:
""
,
"text4"
:
""
,
"text5"
:
""
}
]
Success Response
{
"status"
:
"SUCCESS"
,
"statusCode"
:
"VAHANA_DMS_200"
,
"message"
:
"Media uploaded successfully"
,
"response"
: [
{
"id"
:
"himangdksdgkshimanchandaaaaaaaaaaa"
,
"uploadStatus"
:
"SUCCESS"
,
"errorMessage"
:
""
,
"mediaDetails"
: {
"thumbnail"
:
"http://13.233.90.107:8090/images/image.png"
,
"fileSize"
:
"308095 kb"
,
"fileType"
:
""
,
"fileName"
:
"fileName"
,
"fileCaption"
:
"fileCaption"
,
"fileMimeType"
:
"fileMimeType"
},
"keepDeletedImage"
:
"keepDeletedImage"
,
"deactivedBy"
:
""
,
"deactivedByPrc"
:
null
,
"createTimestamp"
:
"2020-12-07T05:45:24.586+00:00"
,
"createdBy"
:
"Mayank"
,
"createdByReqeustId"
:
"MKKKKK1"
,
"modifiedTimestamp"
:
"2020-12-07T05:45:24.586+00:00"
,
"modifiedBy"
:
"Mayank"
,
"lastModifiedBy"
:
"Mayank"
,
"storageDetails"
:
"S3"
}
],
"errorResponse"
:
null
}
Http status code :
200
@Nikhil.Dhanda Please correct me if something is wrong