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

Read file type from metadata #6557

Closed
cyberduck opened this issue Feb 24, 2012 · 3 comments
Closed

Read file type from metadata #6557

cyberduck opened this issue Feb 24, 2012 · 3 comments

Comments

@cyberduck
Copy link
Collaborator

@cyberduck cyberduck commented Feb 24, 2012

Daankets created the issue

In google docs, you can upload different types of files, like for example pdf files. Google docs will store the file with the file name communicated during the upload, and also store the content-type (mime-type) separately.

If, in Google docs, your rename an item (a file), you may perfectly well remove the (.pdf or other) file extension from the file name, as the file type is stored separately (not linked to the extension).

When you open a google docs connection with CyberDuck, files are listed as they are named within google docs. A PDF file renamed to a name without an extension, will not have an extension within the Cyberduck listing, but also - and that's worse - the mime type will not be detected. It should however be possible to list such files as files with a 'hidden extension' within CyberDuck. This way, after downloading a file, the file type would be correctly recognized by OS X.

How to replicate:

  • Upload two pdf files to google docs.
  • Rename one of them, removing the .pdf extension. Note that google docs still recognizes the PDF nature of the file.
  • Connect with CyberDuck and list the files. Note how one file is recognized as a PDF file, and the other is not.
@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Apr 3, 2012

@dkocher commented

We actually read the file type from the document type returned which is just generic and without a specific MIME type. We derive a file extension from this which is added to the filename as when saving documents on download there is no option to store a MIME type.

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Apr 4, 2013

@dkocher commented

We have dropped support for Google Drive in 400cd82.

Loading

@cyberduck cyberduck closed this Apr 4, 2013
@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Apr 4, 2013

@dkocher commented

See #6976.

Loading

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants