Skip to content

New Upload API semantics

Luke Champine requested to merge duration into master

The upload API now behaves like so:

  • if renew == true, the file will be renewed indefinitely.
  • if renew != true && duration != 0, the file will be uploaded for the duration specified.
  • if renew != true && duration = 0, the file will be uploaded for the default duration.

Basically, instead of using a magic value to indicate renewal (duration == 0), we use an explicit separate field.

Merge request reports