changeset 93:d0566cc4a2ac default tip

uploa fix
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Apr 2025 19:47:48 -0600
parents c41e200c3e76
children
files src/chat.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/chat.js	Mon Mar 31 15:43:14 2025 -0600
+++ b/src/chat.js	Thu Apr 03 19:47:48 2025 -0600
@@ -328,7 +328,7 @@
 function uploadToFilebin(fileName,fileContent) {
 	//console.log(fileContent.byteLength);
 	let request = new XMLHttpRequest();
-	let url = filebinUrl + fileName;
+	let url = filebinUrl + encodeURIComponent(fileName);
 	request.open( 'POST', url );
 	request.onload = function() {
 		if( request.status !== 201 ) {