You may leverage the XML-Connector to achieve this use case.
Basically, Media Asset could be dropped along with the XML file. XML-Connector will read the XML information and accordingly will ingest the respective media asset. If media asset is not found, XML will error out. Also, if only media asset exist - error will not occur and it'll wait until any XML reaches in the folder.
Alternatively, XML alone could be imported via XML-Connector. after the media upload.
Thank you Rajdeo,
I did not know you could drop assets file in the same folder as the XML ad using the xml connect would ingest the asset if it is referenced in the xml file. I will give that a try and see.
Is there anything I should watchout for in order to ensure everything works? I have always tried with just and xml file therefore the asset had to have been previously loaded, bu tnow with the request it is required to have them both dropped.