Skip to content

Download using objectURL of a blob#73

Merged
kba merged 3 commits intomasterfrom
download-url
Dec 11, 2017
Merged

Download using objectURL of a blob#73
kba merged 3 commits intomasterfrom
download-url

Conversation

@kba
Copy link
Copy Markdown
Collaborator

@kba kba commented Dec 11, 2017

The data-URL technique only works for reasonably short strings, this is a more robust implementation. Should work for transformations from URL and upload.

@@ -1,4 +1,6 @@
/* globals $ */
/* globals Blob */
/* global Prism */
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a difference between globals (as in line 2) and global (as in line 3) here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No.

Copy link
Copy Markdown
Member

@stweil stweil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @kba. The new code works fine (installed and tested on https://digi.bib.uni-mannheim.de/ocr-fileformat).

@kba kba merged commit 7756866 into master Dec 11, 2017
&& update-ca-certificates \
&& make install \
&& cp docker.config.php web/config.local.php \
&& sed -i '/^upload_max_filesize/ s/=.*$/= 100M' \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a problem with the automated Docker build on docker hub: https://hub.docker.com/r/ubma/ocr-fileformat/builds/bvafgbah9zqysoblyvupmeg/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping @kba 🔥

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Since the image sizes don't differ now, I'll sumit my dev Dockerfile later.

@stweil stweil deleted the download-url branch December 11, 2017 13:24
@stweil
Copy link
Copy Markdown
Member

stweil commented Dec 11, 2017

I have committed a fix for Dockerfile which hopefully makes it work again.

@zuphilip zuphilip mentioned this pull request Aug 29, 2019
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.

3 participants