Skip to content

Fix upload failing due to subsecond timestamp precision#3

Open
DWG131313 wants to merge 1 commit into
ngs:masterfrom
DWG131313:fix-upload-timestamp-precision
Open

Fix upload failing due to subsecond timestamp precision#3
DWG131313 wants to merge 1 commit into
ngs:masterfrom
DWG131313:fix-upload-timestamp-precision

Conversation

@DWG131313
Copy link
Copy Markdown

The Dropbox API rejects client_modified timestamps that include microsecond precision. This causes uploads to fail silently.

This fix truncates the timestamp to whole seconds, which Dropbox accepts.

Tested successfully on macOS with the compiled binary.

Dropbox API rejects client_modified timestamps with microsecond precision.
Truncate to whole seconds to fix silent upload failures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant