OfficeDev / microsoft-teams-library-js

JavaScript library for use by Microsoft Teams apps
https://docs.microsoft.com/microsoftteams/platform/
Other
430 stars 199 forks source link

Uploading a 0 byte file via drag & drop to Teams #2525

Open boxshrutisingh opened 1 month ago

boxshrutisingh commented 1 month ago

The method from teams getDragAndDropFiles does not return a file object when you upload a 0 byte file and upon debugging, it does not return files and neither an err. Do we know how to handle this scenario?

{
microsoftTeams.thirdPartyCloudStorage.getDragAndDropFiles(cacheId, (files, err) => {
console.log('files in here');
console.log(`files content: ${files}`);
if (err)
{
console.error(`Error retrieving files: ${JSON.stringify(err)}`);
files = [];
}
Meghana-MSFT commented 1 month ago

@boxshrutisingh - Thank you for reporting this, we will check this and get back to you.

Meghana-MSFT commented 3 weeks ago

@boxshrutisingh - This issue is being discussed offline with engineering team. Thank you.

boxshrutisingh commented 2 weeks ago

I acknowledge that this is being discussed offline.