upload image, thumbnail by using multipart.
Pls follow this params "data", "thumb_image", "image"

Ex.
hMap.put("data", createJsonPin(msg, msg, mGps.getLatitude(),
mGps.getLongitude(), "Locale", 1));
hMap.put("thumb_image", mThumbnailFile);
hMap.put("image", Utils.getContentFile());

fix your preference of directory in dir.js

NOTE: Don't push dir.js to GIT once you pulled this file.