createDirectFileUploadDescription abstract method

Future<String?> createDirectFileUploadDescription({
  1. required Session session,
  2. required String path,
  3. Duration expirationDuration = const Duration(minutes: 10),
})

Creates an URL that a client can post a file to via http post, optionally within the specified duration. After the file has been sent, the verifyDirectFileUpload method should be called. If the file upload hasn't been confirmed before the URL expires, the file will be deleted.

Implementation

Future<String?> createDirectFileUploadDescription({
  required Session session,
  required String path,
  Duration expirationDuration = const Duration(minutes: 10),
});