Skip to content

Commit b19f94d

Browse files
Engu-saminssuttCocoChart
authored andcommitted
FIX: Image names may contain special character (fixes #360)
Co-authored-by: Berache Lakhdar <lakhdarberache@gmail.com> Co-authored-by: Chartier Corentin <corentinchartier334@gmail.com>
1 parent 7208656 commit b19f94d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

frontend/src/hyperglosae.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ function Hyperglosae(logger) {
5959
reader.readAsArrayBuffer(attachment);
6060
reader.onload = () => {
6161
const arrayBuffer = reader.result;
62-
63-
fetch(`${service}/${id}/${attachment.name}`, {
62+
fetch(`${service}/${id}/${attachment.name.replaceAll('#', '%23')}`, {
6463
method: 'PUT',
6564
headers: {
6665
// ETag is the header that carries the current rev.

0 commit comments

Comments
 (0)