Hello everyone,
I’m encountering an issue with Uppy when uploading files from OneDrive using the Companion plugin. Specifically, the file modification date isn’t being passed through correctly. Instead, it defaults to the current date when the file is uploaded, which isn’t ideal for our use case.
Background:
- Local Files: Uppy correctly retrieves the
lastModifiedDate
for files uploaded from a local machine. - OneDrive Files: The metadata provided by the OneDrive connector doesn’t seem to include the modification date, so the file’s upload date is being used instead.
Steps Taken:
- I logged the
file.data
object and confirmed that date-related fields (e.g.,modifiedTime
) aren’t present in the metadata from OneDrive.
Here’s an example of the file.data
object:
{
“isFolder”: false,
“icon”: “https://ukwest1-mediap.svc.ms/transform/thumbnail?…”,
“name”: “Barnaby Rudge.pdf”,
“mimeType”: “application/pdf”,
“id”: “014BLDEWIBLTI35PQSWZGIHTIDU3SZHF35”,
…
}
Question:
Has anyone else encountered this issue? Is there a way to retrieve the file’s original modification date from OneDrive through Uppy?
Any insights or suggestions would be greatly appreciated!
Thanks in advance!