Skip to content

blob/fileblob: Support relative paths in bucket URL #2795

@sagikazarmark

Description

@sagikazarmark

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

In application configuration the bucket URL constructor comes really handy. Buckets can be configured with a single URL.

Unfortunately, using bucket URLs we cannot achieve the same results: using file blobs, a bucket URL cannot reference a relative path. Relative paths are often sane defaults in development environments.

Describe the solution you'd like

Find a way to represent relative paths in URLs. For example:

  • file://./path/to/dir (host would be .)
  • file://path/to/dir (host would path. non empty host could mean relative path)

(Thinking it through, the above two solutions are essentially the same)

Describe alternatives you've considered

Use a query parameter to make the path relative:

file:///path/to/dir?relative=true

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions