working upload method with jquery plug in