WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

upctl storage import should allow content-type header to be specified manually for URLs #581

@jpluscplusm

Description

@jpluscplusm

Is your feature request related to a problem? Please describe.

I'm trying to import a storage image that's compressed, but where the upstream server doesn't respond with the Content-Type header required by UpCloud. Therefore I'm forced to pull the image down locally, and upload it using the CLI.

Describe the solution you'd like

I'd like the upctl storage import command to provide an option to import from a URL, whilst allowing the content-type to be specified manually.

Describe alternatives you've considered

I'm downloading the image locally, and using the CLI's undocumented filename-extension sniffing to import it with the appropriate content-type header.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions