added: setting a correct mime type for static files - using magic library
added: std::wstring file_mime_type to ItemContent - a mime type for static file added: Header (core/header.h) - there will be header names defined, at the moment only content_type added: FuncionsBase::Finish() - it is called at the end when the winix finishes
This commit is contained in:
@@ -177,6 +177,22 @@ public:
|
||||
*/
|
||||
int file_type;
|
||||
|
||||
/*
|
||||
* mime file type e.g. image/jpeg
|
||||
*
|
||||
* CHANGEME
|
||||
* we need to rething what to do with above file_type
|
||||
*
|
||||
* may would be better to have:
|
||||
* remove file_type and add:
|
||||
* bool has_static_file;
|
||||
* std::wstring file_mime_type;
|
||||
*
|
||||
* may it would be good to have a seperate mime_type for the thumnail?
|
||||
*
|
||||
*/
|
||||
std::wstring file_mime_type;
|
||||
|
||||
/*
|
||||
* whether or not we have a thumbnail
|
||||
*/
|
||||
@@ -289,6 +305,7 @@ protected:
|
||||
bool do_migration_to_2();
|
||||
bool do_migration_to_3();
|
||||
bool do_migration_to_4();
|
||||
bool do_migration_to_5();
|
||||
|
||||
bool has_access(const User * current_user, int mask) const;
|
||||
bool content_type_is(const std::wstring & type);
|
||||
|
Reference in New Issue
Block a user