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
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