cozy / ACH

Import/Export data from your Cozy
4 stars 5 forks source link

Step by step example to upload files #56

Open frallain opened 4 years ago

frallain commented 4 years ago

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

ptbrowne commented 4 years ago

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

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

ptbrowne commented 4 years ago

Node > 8