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

Add thumbnail to document content type #59

Open
simonrjones opened this issue Jan 10, 2020 · 3 comments
Open

Add thumbnail to document content type #59

simonrjones opened this issue Jan 10, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@simonrjones
Copy link
Member

simonrjones commented Jan 10, 2020

Sean: I’m using the document type for a file upload, but it’s not passing through the following data from WordPress:

@simonrjones simonrjones added the enhancement New feature or request label Jan 10, 2020
@simonrjones
Copy link
Member Author

Exists in WP API:

  • mime_type

Example mime types:

  • application/pdf
  • application/vnd.openxmlformats-officedocument.wordprocessingml.document (Word doc)
  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (Excel)

See AssetField::guesser() and getMimeType()

Also see:

  • media_details.filesize (bytes)

@simonrjones simonrjones self-assigned this Jan 14, 2020
@simonrjones
Copy link
Member Author

simonrjones commented Jan 14, 2020

File type added via asset.getExtension on v0.6.5

Need to review options for creating image thumbnail, since not trivial to resolve this on the WordPress end. May be best to solve on Frontend.

@simonrjones simonrjones changed the title Add file type and thumbnail to document content type Add thumbnail to document content type Jan 15, 2020
@simonrjones simonrjones removed their assignment May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant