Smart M.App discussions

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Frequent Contributor
Posts: 116
Registered: ‎10-16-2015

obtain id of uploaded file?

What's the best way to obtain the id of a uploaded file? I cannot find anything about this in the documentation.

 

I would expect it somewhere in /uploads/{uploadId}/complete, but that doesn't return anything?

Now I have to go back to the folder that I specified for the upload and find the file using the specified filename. This is not very efficient to say the least. I feel I'm overlooking something

Highlighted
Technical Evangelist
Posts: 1,372
Registered: ‎09-11-2015

Re: obtain id of uploaded file?

Hi Arjen,

 

Once the file upload completes using the PUT operation, you can re-check the upload status using GET /api/v1/uploads/{uploadId}.

Then, in the response body, look for crawledDatasetIds property.

 

Regards,

Jan

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Highlighted
Frequent Contributor
Posts: 116
Registered: ‎10-16-2015

Re: obtain id of uploaded file?

Hi Jan, 

 

Thanks! Will try that.

 

Arjen