error 201 wrong file extension while uploading an image to server bug fixed