String date = ent.getValue("date");
String datePath = StringUtil.webdbDate2path(date);
Integer size = new Integer(uploadedData.length);
- //hack: make it a config option to use "dated" dirs
- //we can't cause of stallman -mh
- //if(FileUtil.write(dir+"/"+datePath+"/"+mediaFname, uploadedData)) {
- if(FileUtil.write(dir+"/"+mediaFname, uploadedData)) {
+ if(FileUtil.write(dir+"/"+datePath+"/"+mediaFname, uploadedData)) {
+ //if(FileUtil.write(dir+"/"+mediaFname, uploadedData)) {
//were done with the data, dereference.
uploadedData=null;
try {
ent.setValueForProperty("is_produced", "1");
ent.setValueForProperty("icon_is_produced", "1");
- //hack: make it a config option to use "dated" dirs
- //we can't cause of stallman -mh
- //ent.setValueForProperty("publish_path",datePath+"/"+mediaFname);
- ent.setValueForProperty("publish_path", mediaFname);
+ ent.setValueForProperty("publish_path",datePath+"/"+mediaFname);
+ //ent.setValueForProperty("publish_path", mediaFname);
ent.setValueForProperty("publish_server", mediaHost);
ent.setValueForProperty("size", size.toString());
ent.update();
String date = ent.getValue("date");
String datePath = StringUtil.webdbDate2path(date);
Integer size = new Integer(uploadedData.length);
- //hack: make it a config option to use "dated" dirs
- //we can't cause of stallman -mh
- //if(FileUtil.write(dir+"/"+datePath+"/"+mediaFname, uploadedData)) {
- if(FileUtil.write(rtspDir+"/"+mediaFname, uploadedData)) {
+ if(FileUtil.write(dir+"/"+datePath+"/"+mediaFname, uploadedData)) {
+ //if(FileUtil.write(rtspDir+"/"+mediaFname, uploadedData)) {
//were done with the data, dereference.
uploadedData=null;
ent.setValueForProperty("is_produced", "1");
ent.setValueForProperty("icon_is_produced", "1");
- //hack: make it a config option to use "dated" dirs
- //we can't cause of stallman -mh
- //ent.setValueForProperty("publish_path",datePath+"/"+mediaFname);
- ent.setValueForProperty("publish_path", RealMediaFile);
+ ent.setValueForProperty("publish_path",datePath+"/"+mediaFname);
+ //ent.setValueForProperty("publish_path", RealMediaFile);
ent.setValueForProperty("publish_server", mediaHost);
ent.setValueForProperty("size", size.toString());
ent.update();
String date = ent.getValue("date");
String datePath = StringUtil.webdbDate2path(date);
Integer size = new Integer(uploadedData.length);
- //hack: make it a config option to use "dated" dirs
- //we can't cause of stallman -mh
- //if(FileUtil.write(dir+"/"+datePath+"/"+mediaFname, uploadedData)) {
- if(FileUtil.write(rtspDir+"/"+mediaFname, uploadedData)) {
+ if(FileUtil.write(dir+"/"+datePath+"/"+mediaFname, uploadedData)) {
+ //if(FileUtil.write(rtspDir+"/"+mediaFname, uploadedData)) {
//were done with the data, dereference.
uploadedData=null;
ent.setValueForProperty("is_produced", "1");
ent.setValueForProperty("icon_is_produced", "1");
- //hack: make it a config option to use "dated" dirs
- //we can't cause of stallman -mh
- //ent.setValueForProperty("publish_path",datePath+"/"+mediaFname);
- ent.setValueForProperty("publish_path", RealMediaFile);
+ ent.setValueForProperty("publish_path",datePath+"/"+mediaFname);
+ //ent.setValueForProperty("publish_path", RealMediaFile);
ent.setValueForProperty("publish_server", mediaHost);
ent.setValueForProperty("size", size.toString());
ent.update();