Skip to content

Feature: new API for uploading directly from an URL #10

@alphakevin

Description

@alphakevin

Sometimes user pastes HTML code with <img /> images from another site, and you want them static (the third party site may not served well in the future) and secure (some of the URLs are not HTTPS), so they should be uploaded directly from the original URLs and stored into NexusDocs

Request:

POST /api/namespaces/:namespace/upload-from-url

Body:

{
  urls: [
    '<url1>',
   // ...
  ],
}

Response:

{
  files: [
    {
       url: '<url1>',
       id: '<files_id1>',
    },
    // ...
  ],
}

Metadata

Metadata

Assignees

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