Hi Experts,
I tried using File::SendFileToTempStore_GetResult code to upload file to the temporary storage. This works on my Dev VM but when we deploy it into UAT, it does not work. I am not able to debug in UAT but I was able to get the trace but I still dont have an idea what was the issue:
The import appears to stop at: File::SendFileToTempStore_GetResult. Any ideas what I should check in order to resolve this?
Thanks in advance!
Still unsure why File::SendFileToTempStore_GetResult does not work on UAT.
Alternatively, I used which works in UAT:
fileUploadStrategy = new FileUploadTemporaryStorageStrategy();
fileUploadResult = fileUploadStrategy.uploadFile(localStream, fileNameExt);
Instead of (not working):
fileUploadResult = File::SendFileToTempStore_GetResult(localStream, filePathFileNameExt) as FileUploadTemporaryStorageResult;
Thanks Martin, I will check and update this thread the result.
I found a single place in the standard application where sendFileToTempStore_GetResult() is used - SysTraceController.uploadLastTrace(). Does it work for you there? This will answer an important question: whether the problem is caused by your code or something else. If the standard code doesn't work, you could also log a support request with Microsoft.
Can you please tell us more about the problem than just "it does not work"?
Also, do you want out help with the problem with debugging ("I am not able to debug in UAT")?
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156