def handle_uploaded_media_file(file, file_type=None): """Handles an uploaded file and returns the path to the file object.""" store_service = MediaStoreService(file=file, file_type=file_type) store_service.save() return store_service.storeFileName()