Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hello @Greg-DB
I am using UploadSessionFinishBatchCheckAsync API in my application.
UploadSessionFinishBatchJobStatus resultstatus = await clientadmin.Files.UploadSessionFinishBatchCheckAsync(jobid);
if (resultstatus.AsComplete != null && resultstatus.AsComplete.Value != null)
{
FileMetadata filemetadata = null;
foreach (var resultEntry in resultstatus.AsComplete.Value.Entries)
{
if (resultEntry != null)
{
//Process FileMetatData
if (resultEntry.AsSuccess != null && resultEntry.AsSuccess.Value != null)
{
filemetadata = resultEntry.AsSuccess.Value;
string path = filemetadata.PathDisplay.
I can I get Path of the result entry that completed successfully.
I need to identify the path of the the result entry that failed.
UploadSessionFinishError finisherror = resultEntry.AsFailure.Value;
finisherror does not give the path of the entry that failed.
finisherror.AsPath.Value also does not provide that to me.
How do I get the Path of the result entry that was a failure ?
Thanks,
Gagan
The IList<UploadSessionFinishBatchResultEntry> Entries returned as UploadSessionFinishBatchResult.Entries from UploadSessionFinishBatchCheckAsync will be in the same order as the original IEnumerable<UploadSessionFinishArg> entries you passed to UploadSessionFinishBatchAsync, so you should refer to that original IEnumerable<UploadSessionFinishArg> entries to see which upload session each is referring to.
The IList<UploadSessionFinishBatchResultEntry> Entries returned as UploadSessionFinishBatchResult.Entries from UploadSessionFinishBatchCheckAsync will be in the same order as the original IEnumerable<UploadSessionFinishArg> entries you passed to UploadSessionFinishBatchAsync, so you should refer to that original IEnumerable<UploadSessionFinishArg> entries to see which upload session each is referring to.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!