Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alphakevin opened this issue Jan 30, 2018 · 0 comments
Open

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

alphakevin opened this issue Jan 30, 2018 · 0 comments
Assignees
Labels

Comments

@alphakevin
Copy link
Contributor

alphakevin commented Jan 30, 2018

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>',
    },
    // ...
  ],
}
@alphakevin alphakevin self-assigned this Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant