Skip to content

Allow starting upload sessions with empty content#157

Merged
freekmurze merged 1 commit into
spatie:mainfrom
meistertigran:fix/upload-session-start-empty-content
Jun 15, 2026
Merged

Allow starting upload sessions with empty content#157
freekmurze merged 1 commit into
spatie:mainfrom
meistertigran:fix/upload-session-start-empty-content

Conversation

@meistertigran

Copy link
Copy Markdown
Contributor

Fixes uploadSessionStart('') so starting an upload session with empty content sends the request as an octet-stream upload.

Why

Dropbox allows files/upload_session/start to be called with an empty body. uploadSessionFinish already supports this behavior by allowing empty content, but uploadSessionStart did not, which made the two upload-session methods inconsistent.

@freekmurze freekmurze merged commit 0cc01d4 into spatie:main Jun 15, 2026
10 checks passed
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.

2 participants