Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(json!= null && json.containsKey(JsonKeys.caption.toString())) {
- request.add(JsonKeys.caption.toString(), json.getString(JsonKeys.caption.toString()));
- } else {
- **String caption = fileDisposition.getFileName();**
- if(caption == null) {
- log.warn("uploaded file name not found, defaulting to resource");
- caption = "resource";
- }
- request.add(JsonKeys.caption.toString(), caption);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement