directory to resize image using canvas and then upload with angular and progress bar