Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. if(json!= null && json.containsKey(JsonKeys.caption.toString())) {
  2. request.add(JsonKeys.caption.toString(), json.getString(JsonKeys.caption.toString()));
  3. } else {
  4. **String caption = fileDisposition.getFileName();**
  5. if(caption == null) {
  6. log.warn("uploaded file name not found, defaulting to resource");
  7. caption = "resource";
  8. }
  9. request.add(JsonKeys.caption.toString(), caption);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement