Skip to content

Commit

Permalink
add encoded filename as part of upload url
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx committed Dec 1, 2023
1 parent 290f273 commit 29ab6f7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,12 @@ const ListObjects = () => {
}

if (encodedPath !== "") {
uploadUrl = `${uploadUrl}?prefix=${encodedPath}`;
uploadUrl = `${uploadUrl}?prefix=${encodedPath}&fileName=${encodeURLString(
fileName,
)}`;
} else {
// if passed as prefix it would be treated as folder in backend
uploadUrl = `${uploadUrl}?fileName=${encodeURLString(fileName)}`;
}

const identity = encodeURLString(
Expand Down

0 comments on commit 29ab6f7

Please sign in to comment.