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

Encoded UTF8 characters do not work using the "Upload File" in File Upload #139

Closed
richardhallett opened this issue Feb 21, 2019 · 1 comment
Assignees
Labels

Comments

@richardhallett
Copy link
Contributor

richardhallett commented Feb 21, 2019

Description:
When attempting to use the "Upload File" button on File Upload nothing happens.
A Javascript error is being thrown, my initial suspect is that it because files containing non ASCII files do not properly get handled when we attempt to parse in the doi-upload.js file.
This is specifically to do with uploading the data in the file, not Fabrica's ability to create metadata with UTF8

Reproduce

  1. Create a XML file that has a description with a non ASCII character e.g. ’
  2. Attempt to use "Upload File" button to load this file.
  3. See the JS error in console

JS Error pasted for conveniance:

URIError: malformed URI sequence[Learn More] doi-upload.js:6:11
	b64DecodeUnicode doi-upload.js:6
	onload doi-upload.js:17

Front logo Front conversations

@richardhallett richardhallett changed the title Encoded UTF8 characters do not work with File Upload Encoded UTF8 characters do not work using the "Upload File" in File Upload Feb 21, 2019
@mfenner mfenner added the ready label Feb 24, 2019
@richardhallett richardhallett self-assigned this Mar 13, 2019
@mfenner mfenner removed the ready label Mar 17, 2019
@richardhallett
Copy link
Contributor Author

Attempted to re-create for bug fixing but unable to cause the problem. Various UTF8 in a UTF8 encoded document in various fields all work as expected.

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

No branches or pull requests

2 participants