Skip to content

Add support to upload a local file to a different remote file name in contents.json #2

Closed
@ghv

Description

This allows you to upload "blogpost1.html" as "index.html" in the current folder and upload multiple copies but not locations (each copy has to have a unique name).

The files array in the contents property will support elements that are either a string with the local path or an array of two elements where the first element is the local path to the file and the second element is the desired remote file name.

You only need to use the array of two elements if you want the remote name to differ from the local file name.

The .contents-ts.json lookup key for each file uploaded where these two names differ will be updated to "\(file[0]) as \(file[1])" in order to allow for the same local file to be uploaded to different remote names.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions