Media Management using Flow php server and angular js