adobe / helix-importer

Foundation tools for importing website content into that can be consumed in an Helix project.
Apache License 2.0
9 stars 17 forks source link

Add support to upload directly to google docs #38

Open tripodsan opened 1 year ago

tripodsan commented 1 year ago

For customers that use google drive as content source, it would be useful if they could upload directly to google docs instead of creating the docx first.

kptdobe commented 1 year ago

To be tested but I assume you could mount gdrive locally and write there. This would delegate to gdrive the upload / sync back which can be tricky: during a large import, you need would to make sure the documents are properly uploaded, retry if it fails... makes things just a lot more complicated.

tripodsan commented 1 year ago

and what content do you write to your local google docs? I think it's better to upload directly to gdrive during the import.

kptdobe commented 1 year ago

I just tested and the auto docx-gdoc conversion does not happen via gdrive. My proposal does not work then.

hsaginor commented 1 year ago

This works using gdrive web interface. Basically just (1) import documents locally and (2) upload the root imported folder using web interface instead of desktop gdrive. Still this would be a nice feature.

kptdobe commented 1 year ago

Correct. And with a large import, you probably do not want to use this feature: if you are processing 75k urls, the direct upload to gdrive will slow down the process, if process is too fast you might hit the API rate limit, the upload might fail and break the import process... I personally prefer to import the files on my local file system so that I can upload them manually at the end of the import process. If something goes wrong, I still have the files locally.