You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Expose the maxFileSize on createDirectFileUploadDescription in Sessions #3067
Is your feature request related to a problem? Please describe.
CloudStorage has support to configure the maxFileSize but in the session it is not possible to configure that
Describe the solution you'd like
expose maxFileSize
@marcelomendoncasoares This appears to have been implemented and can likely be closed as completed.
PR #4771 (feat: Cloud storage improvements, merged 2026-03-03) exposed these parameters on StorageAccess.createDirectFileUploadDescription, and the change first shipped in 3.4.0.
On current main, session.storage.createDirectFileUploadDescription accepts:
This covers both the original request (maxFileSize) and the expiration parameter mentioned in the comments — verified in the code on main.
The duplicate issue #4733 (same request: expose max file size and expiration on session.storage.createDirectFileUploadDescription()) was closed as completed when PR #4771 merged, but this issue wasn't linked in that PR, so it stayed open.
Activity
SandPod commentedon Jan 2, 2025
I agree that this should be exposed.
Isakdl commentedon Jan 14, 2025
Additional note: All params should be exposed, the expiration date is also missing from the createDirectFileUploadDescription.
realmeylisdev commentedon Jun 11, 2026
@marcelomendoncasoares This appears to have been implemented and can likely be closed as completed.
PR #4771 (
feat: Cloud storage improvements, merged 2026-03-03) exposed these parameters onStorageAccess.createDirectFileUploadDescription, and the change first shipped in 3.4.0.On current
main,session.storage.createDirectFileUploadDescriptionaccepts:expirationDuration(defaultDuration(minutes: 10))maxFileSize(default 10 MiB)contentLengthpreventOverwriteserverpod/packages/serverpod/lib/src/server/session.dart
Lines 515 to 548 in 43c4e0e
This covers both the original request (
maxFileSize) and the expiration parameter mentioned in the comments — verified in the code onmain.The duplicate issue #4733 (same request: expose max file size and expiration on
session.storage.createDirectFileUploadDescription()) was closed as completed when PR #4771 merged, but this issue wasn't linked in that PR, so it stayed open.session.storage.createDirectFileUploadDescription()should expose the options for max file size and expiration #4733