* appropriate media objects are set.
*
* @author mh
- * @version $Id: MediaRequest.java,v 1.4 2002/11/22 11:57:52 john Exp $
+ * @version $Id: MediaRequest.java,v 1.5 2002/11/25 10:10:10 john Exp $
*
*/
String mediaTitle = (String)mediaValues.get("media_title"+fileNum);
if ( (mediaTitle == null) || (mediaTitle.length() == 0))
- mediaTitle="media item "+fileNum;
- // throw new FileHandlerUserException("Missing field: media title "+mediaTitle+fileNum);
+ // uncomment the next line and comment out the exception throw
+ // if you'd rather just assign missing media titles automatically
+ // mediaTitle="media item "+fileNum;
+ throw new FileHandlerUserException("Missing field: media title "+mediaTitle+fileNum);
// TODO: need to add all the extra fields that can be present in the
// admin upload form. -mh