new logic of file uploading and content creation