SP LMS cannot upload Attachment for a Lesson - Forum | JoomShaper
Solved Templates

SP LMS cannot upload Attachment for a Lesson

Asked by Patricia Lawson 5 years ago Last activity 5 years ago

Hello,

I am using SP LMS bundle.

In a Lesson you can upload an Attachment. I have tried a php file, txt, word docx, nothing seems to work.

What file types can I upload? There is nothing in the documentation...

Thanks!
Pat

Accepted answer

Marked as the solution
Ariba Staff

Thank you, we will note your suggestion regarding the documentation.
You are most welcome.

2 more replies

Ariba Staff

Hello there

Can you please try this solution?
The issue might be because of Bug is in public_html/administrator/components/com_splms/models/lesson.php in line 141.

In the newest version of PHP the hyphen now needs to be escaped (in preg_replace).
php.PNG

php1.PNG

Patricia Lawson Asked this

Hello Ariba,
I am using SP LMS 4.0 which I installed last week - my file public_html\administrator\components\com_splms\models\lesson.php
does not match what you are referring to.

BUT, looking at the code I can see what file types I can upload - that should be in the documentation or better yet - a tooltip. I can upload jpg and pdf. Very surprised that I could not upload a txt file, but I CAN upload a pdf, at least, so good for now!
Thanks!

Log in to reply.