-
Notifications
You must be signed in to change notification settings - Fork 426
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
Push flag "-convert" has no effect #232
Comments
Hello again @smarthimandrew. Thank you for reporting this. I'll take a look at it in about 9 hours when I get back home. |
As far as I can investigate, the flag is correctly passed into the Google API client and even sent well with the URL parameters. I'll check with the team working on the API client if there is anything more needed. |
Hi, Any news on this? I observe similar behavior with a CSV file of mine. It just uploads the file with .csv extension and Drive thinks it's a .doc (it tries to open it with Google Documents). |
Nope. I just used a different approach for my project. It would be nice to
|
In my use case I couldn't find a way around it. I really need it converted. So, here is some more input. I have a CSV file named "data". Here is what happens when I push it to Google Drive: Case 1:
Google Drive thinks this is a plain text file. So it offers me to open the file with StackEdit, Drive Notepad, etc. Case 2: When I issue any of the following commands:
Google Drive understands that it is a CSV file and offers to open it via Drive Notepad and/or Sheets. Case 3: When I try the following two commands:
Both the file icon and the applications offered to open the file suggest that Google Drive has converted the file into Google Docs (not Sheets) format. Case 4: I converted the file to ODS locally and:
This one was weird. It did not convert the file and didn't even offer to open it with Sheets (Zoho Sheet was an option, though). Apparently Google Drive doesn't support ODS. All in all, in some cases, @odeke-em, you already said that this is not a problem on drive's side (unless your investigation showed otherwise); should I report this problem somewhere else (if so, where)? |
Ping! I still observe that .CSV files are converted to Google Document files instead of Sheets. @odeke-em from what you said earlier, it's clearly not a drive issue. But you are definitely closer to the Google Drive team than I am. So I wonder if there is another way of attracting their attention? Should I submit a ticket elsewhere (if so, where)? This issue really disrupts my workflow (introduces a few manual steps to an otherwise automated set up), if I sound insistent, that's the only reason :) |
Oops sorry for the late reply @canpolat, my apologies I didn't mean to ignore this :) |
@odeke-em No worries. If this was actually a problem on drive I'm pretty sure it would have been solved by now. But dependencies are tricky :) |
Hello folks, as seen in @canpolat's investigation as well as from PR #357, when csv files get $ drive push csvfiles.csv This will upload it as a spreadsheet, when you use the Google Drive Web UI viewer it will create a Google Sheet directly from it but the caveat is that create a duplicate file. |
I am coming at this from the opposite side - I don't want documents converted when they are pushed. Is there some way this can be achieved? I can open a separate issue to cover this. (If it's relevant in my case I have plain text files which I don't want coercing into document files - I'd rather they stay as plain text. It's also very possible I'm just misunderstanding the documentation.) |
Hello again @tom-saunders, |
It appears that uploading via the web client vs |
Coercing csv, tsv to officedocument (odeke-em#357) doesn't work around odeke-em#232 ("Push flag "-convert" has no effect"). Therefore there is no need for this hack.
I filed an issue at the Google Apps APIs: https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=4198 Please star it so that it gets prioritized. Edit: I could reproduce the issue via Google's own file upload example, so it must be an API issue. |
Awesome thank you @canpolat for creating that! Am definitely going to star it too. |
I've tweeted https://twitter.com/odeke_et/status/678145002174836736, please share with your friends so that we can get this starred and looked at. |
According to the readme documentation, the "convert" flag is supposed to convert a file to its native google doc format. It seems to have no effect when used with the following xls file:
https://drive.google.com/file/d/0B_KcvpELW9SYNVBmM1JiOG5rQzQ/view?usp=sharing
Or its xlsx equivalent:
https://drive.google.com/file/d/0B_KcvpELW9SYcnhYR01oVm15aXM/view?usp=sharing
The flag seems to have no effect in either case. What am I doing wrong?
The text was updated successfully, but these errors were encountered: