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

Step by step example to upload files #56

Open
frallain opened this issue Nov 4, 2019 · 5 comments
Open

Step by step example to upload files #56

frallain opened this issue Nov 4, 2019 · 5 comments
Labels
question Further information is requested

Comments

@frallain
Copy link

frallain commented Nov 4, 2019

Hello, could you please write a step by step example to upload files?
I've got several questions on the current README:

  • Is it compulsory to first create a photo albums to upload images? What if my files are not images?
  • What do you mean by "Import repositories with files" ? What kind of repositories are you talking about?
  • How do I generate the token file?
    Thanks in advance
@ptbrowne ptbrowne added the question Further information is requested label Nov 5, 2019
@ptbrowne
Copy link
Contributor

ptbrowne commented Nov 5, 2019

Hi Francois,

It is normally not necessary to use ACH to upload files or create album. ACH is an "advanced" programmatic way that can be used on your Cozy, but it is not the recommended way : you can either use the synchronization desktop client, or the Drive application or the Photos application to either

  • upload files
  • upload photos
  • create albums

More info on the synchronization client here : https://support.cozy.io/article/282-etape-6-synchronisez-votre-ordinateur-avec-votre-cozy. For the Drive/Photos application, you can find them directly on the Homepage of your Cozy. Tell me if it is OK for you :)

@frallain
Copy link
Author

frallain commented Nov 5, 2019

Thanks for your response, but I'd like to upload files programmatically =) and it seems this tool is the only way to do it for cozycloud. If it's not supposed to be used, what's the point of this public repo? I am just trying to use this tool and improve its doc because it's hard to use right now.

@ptbrowne
Copy link
Contributor

ptbrowne commented Nov 5, 2019

Ah ok :) Then you are at the right place 👍

Are you trying to upload whole local directories as photo albums in your Cozy ?

Is it compulsory to first create a photo albums to upload images? What if my files are not images?

No, it is not compulsory. Photo albums are used by the Photos app. If you are only dealing with files, the importDir command should be enough.

What do you mean by "Import repositories with files" ? What kind of repositories are you talking about?

"Repository" is the wrong term here, I will replace it by "directory". Thanks :)

How do I generate the token file?

When running an ACH command, an authentication page to your Cozy will opened into your web browser. After entering your password and successfully logging in, a token will be generated and stored locally. You will not have to generate the token manually.

@frallain
Copy link
Author

frallain commented Nov 5, 2019

Thanks, one last thing, which version of node is needed?

@ptbrowne
Copy link
Contributor

ptbrowne commented Nov 5, 2019

Node > 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants