}
@SuppressWarnings("unchecked")
@RequestMapping(value = "/direct_unsigned_upload_form", method = RequestMethod.GET)
public String directUnsignedUploadPhotoForm(ModelMap model) throws Exception {
model.addAttribute("photoUpload", new PhotoUpload());
model.addAttribute("unsigned", true);
Cloudinary cld = Singleton.getCloudinary();
String preset = "sample_" + cld.apiSignRequest(Cloudinary.asMap("api_key", cld.getStringConfig("api_key")), cld.getStringConfig("api_secret")).substring(0, 10);
model.addAttribute("preset", preset);
try {