BUG? Space support in attachments #273
Closed
MvantLoo
started this conversation in
Contributors
Replies: 1 comment
-
|
fixed in #275 |
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.
-
When you upload an attachment with spaces in the filename, you will see the md-string in stead of the download link.
I solved this in file
Document.class.phpby adding rawurlencode():Line 299:
$attachment->url=PATH."datasets/documents/".$this->ID."/".rawurlencode($element_fe);Also a sneaky request to support txt files ;) or maybe better: use a setting for a list of allowed file-extentions.
Line 295:
if(!in_array(end($file_extension),array("pdf","doc","docx","xls","xlsx","ppt","pptx","txt"))){continue;}Beta Was this translation helpful? Give feedback.
All reactions