Hi,

I'm want to use the modular database action for saving documents to a database. I allready uses it successfully for uploading images. I've managed to save the documents (any kind of binary file) to the database, but I can't figure out how to retrive the mimetype or the filename from the stream to save it to the db. Below is my code:


This works when I'm uploading images. What's the difference? What am I doing wrong?

The enctype attribute for the form is "multipart/form-data".

Best,
/jonas