Fix for file too large(based on server config end)
Also binding the file details with the ajax context

Signed-off-by: Siddhartha Gupta <makerzzz.zzzz@gmail.com>