sqlpage.persist_uploaded_file function / empty space in the file name #668
Closed
SebastiendOrnano
started this conversation in
Ideas
Replies: 2 comments
-
Hello, and thank you for this feedback ! I updated persist_uploaded_file, to generate url-safe file names. What you can do with your existing file names that contain spaces is to manually url-encode them: SELECT
CONCAT (
'![view picture](',
replace(member_picture_L, ' ', '%20'),
')'
) AS Img
; |
Beta Was this translation helpful? Give feedback.
0 replies
-
It works. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The filename of a file uploaded through sqlpage.persist_uploaded_file function include 2 spaces
2024-11-02 12h56m24s dOuTc69Z.png
When using the file in a carousel, datagrid or html component, it works.
But not in a table component
It works only if the spaces are replaced by underscores in the filename (I did the test by changing the filename in the repository and the datebase).
2024-11-02_12h56m24s_dOuTc69Z.png
It seems logical since the spaces introduce a break in the path of the file.
There is perhaps a security issue to introduce white spaces in the name or there is perhaps a way to formulate the table no to be blocked ? But, if not, could it be possible to replace the spaces by underscores ?
anyway, thanks a lot for sqlpage
Beta Was this translation helpful? Give feedback.
All reactions