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

How to add existing files to the list? #1814

Closed
jiankafei opened this issue Aug 29, 2019 · 3 comments
Closed

How to add existing files to the list? #1814

jiankafei opened this issue Aug 29, 2019 · 3 comments
Assignees
Labels

Comments

@jiankafei
Copy link

How to add network files to the list to represent the initial file of the list, because it is a file link, so I hope there are two ways to handle, upload and not upload network files.

@arturi
Copy link
Contributor

arturi commented Aug 29, 2019

Hi! Does this solution help: #1006 (comment)? It’s mentioned in the addFile docs here: https://uppy.io/docs/uppy/#uppy-addFile-fileObject.

@jiankafei
Copy link
Author

I don't want to re-download the network file and upload it. It just occupies a place in the list, so there's no need to download it at all. I don't know if the following plan meets my needs.
uppy.getPlugin('Url').addFile('/path/to/image.jpg')

@arturi
Copy link
Contributor

arturi commented Aug 29, 2019

Yes, your proposed solution should work, provided you are using Companion, hosted from Transloadit or your own.

If you don’t need to upload that file too, and just want it displayed, that’s also possible: #1751 (comment)

@arturi arturi self-assigned this Aug 29, 2019
@arturi arturi closed this as completed Sep 17, 2019
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

2 participants