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

Fix bug on mime-type of uploaded files #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pbiron
Copy link

@pbiron pbiron commented Jun 15, 2017

Provides a workaround for what I consider 2 bugs in wp_import_handle_upload() that limit impede the UX of this plugin:

  1. the mime-type of the attachment post created from uploaded WXR documents is empty
  2. '.txt' appended to the uploaded filename

See Issue 125: incorrect mime-type on uploaded WXR documents.

Note: this workaround should be considered temporary and reverted once/if the bugs are fixed in core.

Note: this PR needs to be merged before the one in Fix bug whereby non-xml files in the media library are shown when "Select it from the Media Library" is clicked otherwise that other PR will result in any files uploaded by this plugin to not show up in the media modal dialog. Sorry, I should have submitted this one 1st to avoid the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant