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 (
',
')'
) 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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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