New Upload API semantics
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.