Hi Brujo,
As suggested by Srinivass, use function module SDOK_MIMETYPE_GET to get mimetype based on file extenstion.
In your case: for "DOCX", mime type should be "application/octet-stream".
The issue here is with lv_content i.e. the content is empty. Hence it is having 0kb.
It should be having file content filled.
Get the content of your file in xstring format into lv_content.
Hope this helps you.
Regards,
Rama