- try {
- String contentType = aFile.getContentType();
-
- if (contentType.equals("text/plain") ||
- contentType.equals("application/octet-stream") ||
- contentType == null) {
- throw new MediaExc("Invalid content-type: " + contentType);
- }
-
- values.putAll(aValues);
- values.put("date", StringUtil.date2webdbDate(new GregorianCalendar()));
- values.put("is_produced", "0");
-
- mediaTypeModule = new ModuleMediaType();