As designed Attachment content type not set for temporary attachments

XFA

Well-known member
Hi,

I don't know if this would be called a bug, as designed or a feature request.

Currently if you look at the attachment uploader form in the attachment_upload_button template, the content type is passed to the url for the upload.
You then use it in the code to the attachment handler.

However, when inserting the temporary attachment to the database, you don't set the content_type column in the database.
Surely it is a temporary attachment but shouldn't it be set ?

I personally see some use to that to modify the attachment_editor_attachment depending on the type of attachment.

Clément
 
This is as designed but coincidentally it's a change we made in XF2 recently.

It's not something we'd be looking to change in the 1.5.x series.
 
Back
Top Bottom