The issue is that I use that “fileURL” to save to a column with a type of “FILE REFERENCE”. This means that the “FILE REFERENCE” column will have a “path/to/the/file/test+file.pdf” as value. While the rial path to the file is “path/to/the/file/test file.pdf”. Thus I get an error when I try to download the file with error “The specified resource was not found”.
When I update the value of the column, manually, to “path/to/the/file/test file.pdf” so everything works fine.
I tried to use decodeURI() but got the same issue.